Documents all the Error Codes in Credit-protocol staking.
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.
Invalid unstaking penalties.
Can occur in initialize
and setUnstakingPenalties
.
initialize: invalid cycle duration.
Modifier: validateDistributedTokensIndex
Index does not exist.
Modifier: validateDistributedToken
Token does not exists.
Modifier: isDistributorOrOwner
Caller is not the owner or distributor.
Check msg.sender.
Receive: caller must be WETH.
setDistributor: address cannot be zero.
harvestDividends: invalid token.
emergencyWithdraw: token balance is zero.
enableDistributedToken: already enabled dividends token.
enableDistributedToken: too many distributedTokens.
enableDistributedToken: already disabled dividends token.
removeTokenFromDistributedTokens: token cannot be removed.
_safeTokenTransfer: not receipt token.
_safeTokenTransfer: ETH_TRANSFER_FAILED.