Errors

Library for all Aria contract custom errors.

Errors

AriaIPRWAVault__ZeroAmount

Thrown when the amount is zero

error AriaIPRWAVault__ZeroAmount();

AriaIPRWAVault__ZeroRoyaltyTokenDistributionWorkflowsAddress

Thrown when the royalty token distribution workflows address is zero

error AriaIPRWAVault__ZeroRoyaltyTokenDistributionWorkflowsAddress();

AriaIPRWAVault__ZeroRoyaltyModuleAddress

Thrown when the royalty module address is zero

error AriaIPRWAVault__ZeroRoyaltyModuleAddress();

AriaIPRWAVault__ZeroTokenizerModuleAddress

Thrown when the tokenizer module address is zero

error AriaIPRWAVault__ZeroTokenizerModuleAddress();

AriaIPRWAVault__ZeroFractionalTokenTemplateAddress

Thrown when the fractional token template address is zero

error AriaIPRWAVault__ZeroFractionalTokenTemplateAddress();

AriaIPRWAVault__ZeroAdminAddress

Thrown when the admin address is zero

error AriaIPRWAVault__ZeroAdminAddress();

AriaIPRWAVault__ExpirationTimeNotInFuture

Thrown when the expiration time is not in the future

error AriaIPRWAVault__ExpirationTimeNotInFuture(uint256 expirationTime, uint256 currentTime);

Parameters

Name
Type
Description

expirationTime

uint256

The provided expiration time

currentTime

uint256

The current time

AriaIPRWAVault__ZeroFundReceiverAddress

Thrown when the fund receiver address is zero

error AriaIPRWAVault__ZeroFundReceiverAddress();

AriaIPRWAVault__ZeroUsdcContractAddress

Thrown when the USDC contract address is zero

error AriaIPRWAVault__ZeroUsdcContractAddress();

AriaIPRWAVault__ZeroSPGNftContractAddress

Thrown when the spg nft contract address is zero

error AriaIPRWAVault__ZeroSPGNftContractAddress();

AriaIPRWAVault__FractionalTokenNotSet

Thrown when the fractional token is not set

error AriaIPRWAVault__FractionalTokenNotSet();

AriaIPRWAVault__CallerNotAdmin

Thrown when the caller is not the admin

error AriaIPRWAVault__CallerNotAdmin(address caller, address admin);

Parameters

Name
Type
Description

caller

address

The function caller address

admin

address

The admin address

AriaIPRWAVault__InvalidUSDCAddress

Thrown when the USDC address is invalid

error AriaIPRWAVault__InvalidUSDCAddress();

AriaIPRWAVault__UnsupportedIERC20

Thrown when the token is not supported

error AriaIPRWAVault__UnsupportedIERC20();

AriaIPRWAVault__VaultNotOpen

Thrown when the vault is not open

error AriaIPRWAVault__VaultNotOpen(FundraiseState currentState);

Parameters

Name
Type
Description

currentState

FundraiseState

The current state of the vault

AriaIPRWAVault__VaultNotCanceled

Thrown when the vault is not canceled

error AriaIPRWAVault__VaultNotCanceled(FundraiseState currentState);

Parameters

Name
Type
Description

currentState

FundraiseState

The current state of the vault

AriaIPRWAVault__NoRefundableDeposit

Thrown when there is no refundable deposit

error AriaIPRWAVault__NoRefundableDeposit(address claimer, address token);

Parameters

Name
Type
Description

claimer

address

The address of the claimer

token

address

The address of the token that the claimer wants to claim

AriaIPRWAVault__VaultNotClosed

Thrown when the vault is not closed

error AriaIPRWAVault__VaultNotClosed(FundraiseState currentState);

Parameters

Name
Type
Description

currentState

FundraiseState

The current state of the vault

AriaIPRWAVault__ZeroDepositAmount

Thrown when the deposit amount is zero

error AriaIPRWAVault__ZeroDepositAmount(address depositor, address token);

Parameters

Name
Type
Description

depositor

address

The address of the depositor

token

address

The address of the token that the depositor wants to deposit

AriaIPRWAVault__ClaimerNotEligible

Thrown when the claimer is not eligible to claim the fractionalized IP tokens

error AriaIPRWAVault__ClaimerNotEligible(address claimer, address usdc);

Parameters

Name
Type
Description

claimer

address

The address of the claimer

usdc

address

The USDC address used to deposit into the fundraise

AriaIPRWAVault__ClaimerAlreadyClaimed

Thrown when the claimer has already claimed the fractionalized IP tokens

error AriaIPRWAVault__ClaimerAlreadyClaimed(address claimer);

Parameters

Name
Type
Description

claimer

address

The address of the claimer

AriaIPRWAVault__WhitelistDisabled

Thrown when the whitelist is disabled

error AriaIPRWAVault__WhitelistDisabled();

AriaIPRWAVault__WhitelistProofInvalid

Thrown when the whitelist merkle proof is invalid

error AriaIPRWAVault__WhitelistProofInvalid();

AriaIPRWAVault__CallerNotWhitelisted

Thrown when the caller is not whitelisted

error AriaIPRWAVault__CallerNotWhitelisted();

AriaIPRWAVault__ActiveDepositsExist

Thrown when there are active deposits

error AriaIPRWAVault__ActiveDepositsExist(address token, uint256 totalDeposits);

Parameters

Name
Type
Description

token

address

The address of the token

totalDeposits

uint256

The total deposits

AriaIPRWAVault__FractionalTokenSupplyLessThanTotalDeposits

Thrown when the fractional token total supply is less than the total deposits

error AriaIPRWAVault__FractionalTokenSupplyLessThanTotalDeposits(
    uint256 fractionalTokenTotalSupply, uint256 totalDeposits
);

Parameters

Name
Type
Description

fractionalTokenTotalSupply

uint256

The total supply of the fractional token

totalDeposits

uint256

The total deposits

AriaIPRWAVault__FractionalTokenAlreadyDeployed

Thrown when the fractional token is already deployed

error AriaIPRWAVault__FractionalTokenAlreadyDeployed(address fractionalToken);

Parameters

Name
Type
Description

fractionalToken

address

The address of the fractional token

AriaIPRWAVault__NoRaise

Thrown when there is no raise has been made.``

error AriaIPRWAVault__NoRaise();

AriaIPRWAVault__NothingToRecover

Thrown when there is nothing to recover

error AriaIPRWAVault__NothingToRecover();

AriaIPRWAVault__ZeroMintTimelockDuration

Thrown when trying to set a mint timelock duration of zero

error AriaIPRWAVault__ZeroMintTimelockDuration();

AriaIPRWAVault__ZeroMintAmount

Thrown when the mint amount is zero during initiation.

error AriaIPRWAVault__ZeroMintAmount();

AriaIPRWAVault__MintAlreadyPending

Thrown when initiating a mint while another is already pending.

error AriaIPRWAVault__MintAlreadyPending();

AriaIPRWAVault__TimelockCalculationOverflow

Thrown if calculating the unlock timestamp results in an overflow.

error AriaIPRWAVault__TimelockCalculationOverflow();

AriaIPRWAVault__NoPendingExecution

Thrown when attempting to execute a timelocked action when none is pending.

error AriaIPRWAVault__NoPendingExecution();

AriaIPRWAVault__TimelockNotReached

Thrown when attempting to execute a timelocked action before the timelock is reached.

error AriaIPRWAVault__TimelockNotReached(uint48 unlockTimestamp);

Parameters

Name
Type
Description

unlockTimestamp

uint48

The timestamp when the timelock expires.

AriaIPRWAVault__DurationUpdateAlreadyPending

Thrown when attempting to initiate a duration update while another is pending.

error AriaIPRWAVault__DurationUpdateAlreadyPending();

AriaIPRWAVault__CannotSetZeroTimelockDuration

Thrown when attempting to set the withdrawal timelock duration to zero.

error AriaIPRWAVault__CannotSetZeroTimelockDuration();

AriaIPRWAVault__FractionalTokenCapExceeded

Thrown when the fractional token cap is exceeded on upcoming claim

error AriaIPRWAVault__FractionalTokenCapExceeded();

AriaIPRWAVault__InvalidClaimDeadline

Thrown when the claim deadline is invalid

error AriaIPRWAVault__InvalidClaimDeadline();

AriaIPRWAVaultFactory__CallerNotAdmin

Thrown when the caller is not the factory admin

error AriaIPRWAVaultFactory__CallerNotAdmin(address caller, address admin);

Parameters

Name
Type
Description

caller

address

The function caller address

admin

address

The admin address

AriaIPRWAVaultFactory__ZeroAdminAddress

Thrown when the admin address is zero

error AriaIPRWAVaultFactory__ZeroAdminAddress();

AriaIPRWAVaultFactory__ZeroVaultTemplateAddress

Thrown when the vault template address is zero

error AriaIPRWAVaultFactory__ZeroVaultTemplateAddress();

AriaIPDistributionContract__CallerNotAdmin

Thrown when the caller is not the admin

error AriaIPDistributionContract__CallerNotAdmin(address caller, address admin);

Parameters

Name
Type
Description

caller

address

The function caller address

admin

address

The admin address

AriaIPDistributionContract__ZeroRoyaltyModuleAddress

Thrown when the royalty module address is zero

error AriaIPDistributionContract__ZeroRoyaltyModuleAddress();

AriaIPDistributionContract__ZeroUpgradeableBeaconAddress

Thrown when the upgradeable beacon address is zero

error AriaIPDistributionContract__ZeroUpgradeableBeaconAddress();

AriaIPDistributionContract__ZeroFractionalTokenAddress

Thrown when the fractional token address is zero

error AriaIPDistributionContract__ZeroFractionalTokenAddress();

AriaIPDistributionContract__ZeroAdminAddress

Thrown when the admin address is zero

error AriaIPDistributionContract__ZeroAdminAddress();

AriaIPDistributionContract__ZeroIpIdAddress

Thrown when the IP ID address is zero

error AriaIPDistributionContract__ZeroIpIdAddress();

AriaIPDistributionContract__ZeroProtocolTreasuryAddress

Thrown when the protocol treasury address is zero

error AriaIPDistributionContract__ZeroProtocolTreasuryAddress();

AriaIPDistributionContract__ZeroRewardTokenAddress

Thrown when the reward token address is zero

error AriaIPDistributionContract__ZeroRewardTokenAddress();

AriaIPDistributionContract__ZeroFractionalTokenAllocPoints

Thrown when the fractional token alloc points is zero

error AriaIPDistributionContract__ZeroFractionalTokenAllocPoints();

AriaIPDistributionContract__ZeroStakingTokenAddress

Thrown when the staking token address is zero

error AriaIPDistributionContract__ZeroStakingTokenAddress();

AriaIPDistributionContract__ZeroDepositAmount

Thrown when the deposit amount is zero

error AriaIPDistributionContract__ZeroDepositAmount();

AriaIPDistributionContract__ZeroWithdrawAmount

Thrown when the withdraw amount is zero

error AriaIPDistributionContract__ZeroWithdrawAmount();

AriaIPDistributionContract__ZeroRewardDistributionPeriod

Thrown when the reward distribution period is zero

error AriaIPDistributionContract__ZeroRewardDistributionPeriod();

AriaIPDistributionContract__StakingPoolAlreadyExists

Thrown when attempting to add a staking pool that already exists

error AriaIPDistributionContract__StakingPoolAlreadyExists(address stakingToken);

Parameters

Name
Type
Description

stakingToken

address

The address of the staking token

AriaIPDistributionContract__InsufficientStakedBalance

Thrown when the staker's staked balance is insufficient

error AriaIPDistributionContract__InsufficientStakedBalance(
    address staker, address stakingToken, uint256 stakedBalance, uint256 withdrawAmount
);

Parameters

Name
Type
Description

staker

address

The address of the staker

stakingToken

address

The address of the staking token

stakedBalance

uint256

The staker's staked balance

withdrawAmount

uint256

The amount of staking tokens to withdraw

AriaIPDistributionContract__NoRewardsToClaim

Thrown when there are no rewards to claim

error AriaIPDistributionContract__NoRewardsToClaim(address claimer);

Parameters

Name
Type
Description

claimer

address

The address of the claimer

AriaIPDistributionContract__IpRoyaltyVaultNotDeployed

Thrown when the IP royalty vault is not deployed

error AriaIPDistributionContract__IpRoyaltyVaultNotDeployed(address ipId);

Parameters

Name
Type
Description

ipId

address

The IP ID