Documents all the Error Codes in Credit-protocol distribution.
Modifier isAdminOrOwner failed.
Caller is not the owner of the contract, or an admin. Check the msg.sender.
Methods with this restricted access include setRoot, setLockingDecisionCutOff, setUnstakeStatuses, stake, reducedCliffUnstake & standardCliffUnstake.
Address Zero error.
The address (or the address of the ERC20 token) passed is 0.
Can occur in initialize.
Check the address passed, and verify if it is not 0.
Launch share already claimed by user. Cannot now lock.
Occurs in lockLaunchShare.
Launch share already locked by user.
Occurs in lockLaunchShare.
Can no longer lock launch share. Outside of decision window.
Occurs in lockLaunchShare.
User never locked launch share. Therefore nothing to unlock.
Occurs in unlockLaunchShare.
Admin/owner is yet to unstake user tokens. As such, user is unable to unlock their launch share.
Occurs in unlockLaunchShare.
Address of Credit token or CreditStaking contract is yet to be set using initialize.
Occurs in stake.
Admin is unable to stake tokens on behalf of users before the lock decision cut off.
Occurs in stake.
Total vesting duration cannot equal zero.
Check value of _totalReducedVestingDuration & _totalStandardVestingDuration passed to stake.
_standardCliffDuration must be greater than _reducedCliffDuration.
Standard vesting duration must be greater than reduced.
Check values of _totalReducedVestingDuration & _totalStandardVestingDuration passed to stake.
_totalReducedVestingDuration must be greater than _reducedCliffDuration.
Cliff period cannot be greater than the total vesting duration.
Check values of _totalReducedVestingDuration & _reducedCliffDuration passed to stake.
_totalStandardVestingDuration must be greater than _standardCliffDuration.
Cliff period cannot be greater than the total vesting duration.
Check values of _totalStandardVestingDuration & _standardCliffDuration passed to stake.
Admin or owner cannot unstake before reduced or standard cliff period has elapsed.
Occurs in reducedCliffUnstake & standardCliffUnstake.
Unstaking at current moment would incur a penalty. As such, admin/owner is unable to unstake tokens on user's behalf.
Modifier isAdminOrOwner failed.
Caller is not the owner of the contract, or an admin. Check the msg.sender.
Address Zero error.
The address (or the address of the ERC20 token) passed is 0.
Can occur in initialize.
Check the address passed, and verify if it is not 0.
_treasuryTotalAmount must be greater or equal to _treasuryVestedAmount.
Occurs in initialize.
_ratioUpper must be greater than _ratioLower.
Occurs in setEmissionRateParams.
_ratioUpper must be <= 1e18.
Occurs in setEmissionRateParams.
_emissionRateUpper must be greater than _emissionRateLower
Occurs in setEmissionRateParams.
Method only callable by lpFarming contract.
Occurs in claimFarmingCredit.
Call to multiswap failed.
Occurs in swap.
Array size mismatch. Ensure lengths of _tokens and _amounts are equal.
Occurs in sendToStaking.
Insufficient token balance.
Ensure contract has sufficient balance of CREDIT token before calling method.
Credit token balance must be greater or equal to auctionAmount + airdropAmount + teamAllocationAmount + treasuryTotalAmount.
Occurs in distribute.
Address Zero error.
The address (or the address of the ERC20 token) passed is 0.
Can occur in initialize or stakeTeamAllocation if initialize has not yet been called.
Check the address passed, and verify if it is not 0.
Individual allocations sum differs to totalTeamAllocation. Check _teamAllocations.
Occurs in unstakeAndVestTeamAllocation.
Array size mismatch. Ensure lengths of _teamAddresses and _teamAllocations are equal.
Occurs in unstakeAndVestTeamAllocation.
Cliff duration yet to elapse. Method only callable after cliffEnd.
Occurs in unstakeAndVestTeamAllocation.
Unstaking at current moment would incur a penalty. As such, owner is unable to unstake tokens on team's behalf.
Occurs in unstakeAndVestTeamAllocation.
Team members unable to claim tokens before owner has unstaked tokens on their behalf.
Occurs in claim.
Team member has already claimed their tokens.
Occurs in claim.
Team member has no allocation and therefore nothing to claim.
Occurs in claim.
Address Zero error.
The address (or the address of the ERC20 token) passed is 0.
Can occur in construtor or vestTokens.
Check the address passed, and verify if it is not 0.
Beneficiary already exists.
Occurs in vestTokens.
Invalid allocation. Allocation must be greater than 0.
Occurs in vestTokens.
Invalid start. Start timestamp must be in the future.
Occurs in vestTokens.
Invalid duration. Duration must be greater than 0.
Occurs in vestTokens.
Invalid cliff. Duration must be greater than cliff.
Occurs in vestTokens.
Beneficiary doesn't exist. Nothing to revoke.
Occurs in revoke.
All tokens have already been unlocked. Nothing to revoke.
Occurs in revoke.
No releasable tokens.
Occurs in release.