Errors

Git Source

Library containing all custom errors the protocol may revert with.

Errors

NameEmpty

Thrown when the registry name given is empty.

error NameEmpty();

AddressEmpty

Thrown when the registry address given is empty.

error AddressEmpty();

RegistryNameFound

Thrown when the registry name is found when calling addRegistry().

error RegistryNameFound(bytes32 name);

RegistryNameNotFound

Thrown when the registry name is not found but is expected to be.

error RegistryNameNotFound(bytes32 name);

RegistryAddressNotFound

Thrown when the registry address is not found but is expected to be.

error RegistryAddressNotFound(address registryAddress);

RegistryNameVersionNotFound

Thrown when the registry name and version is not found but is expected to be.

error RegistryNameVersionNotFound(bytes32 name, uint256 version);

DuplicateRegistryAddress

Thrown when a duplicate registry address is found.

error DuplicateRegistryAddress(address registryAddress);

ZeroAddress

Error for when an address is zero which is not allowed.

error ZeroAddress();

ZeroAmount

Error for when an amount is zero which is not allowed.

error ZeroAmount();

InvalidRewardSplit

Error for when a reward split is invalid.

error InvalidRewardSplit();

TreasuryPctTooHigh

Error for when the treasury percentage is too high.

error TreasuryPctTooHigh();

PerpetualLockEnabled

Error for when perpetual lock is enabled and an action cannot be taken.

error PerpetualLockEnabled();

PerpetualLockDisabled

Error for when perpetual lock is disabled and an action cannot be taken.

error PerpetualLockDisabled();

SwapAndLockNotSet

Error for when swap and lock settings are not set.

error SwapAndLockNotSet();

GaugeRewardsAlreadyAdded

Error for when gauge rewards have already been added.

error GaugeRewardsAlreadyAdded();

GaugeRewardsNotYetAdded

Error for when gauge rewards have not yet been added.

error GaugeRewardsNotYetAdded();

ExecutionNotAllowed

Error for when execution of an action is not allowed.

error ExecutionNotAllowed();

ExecutionFailed

Error for when execution of an action has failed.

error ExecutionFailed();

CoveYfiRewardForwarderNotSet

Error for when Cove YFI reward forwarder is not set.

error CoveYfiRewardForwarderNotSet();

RescueNotAllowed

Error for when a rescue operation is not allowed.

error RescueNotAllowed();

PreviousRewardsPeriodNotCompleted

Error for when the previous rewards period has not been completed.

error PreviousRewardsPeriodNotCompleted();

OnlyStakingDelegateCanUpdateUserBalance

Error for when only the staking delegate can update a user's balance.

error OnlyStakingDelegateCanUpdateUserBalance();

OnlyStakingDelegateCanAddStakingToken

Error for when only the staking delegate can add a staking token.

error OnlyStakingDelegateCanAddStakingToken();

OnlyRewardDistributorCanNotifyRewardAmount

Error for when only the reward distributor can notify the reward amount.

error OnlyRewardDistributorCanNotifyRewardAmount();

StakingTokenAlreadyAdded

Error for when a staking token has already been added.

error StakingTokenAlreadyAdded();

StakingTokenNotAdded

Error for when a staking token has not been added.

error StakingTokenNotAdded();

RewardRateTooLow

Error for when the reward rate is too low.

error RewardRateTooLow();

RewardDurationCannotBeZero

Error for when the reward duration cannot be zero.

error RewardDurationCannotBeZero();

SlippageTooHigh

Error for when slippage is too high.

error SlippageTooHigh();

InvalidTokensReceived

Error for when invalid tokens are received.

error InvalidTokensReceived();

InvalidFromToken

CURVE ROUTER SWAPPER ///

error InvalidFromToken(address intendedFromToken, address actualFromToken);

InvalidToToken

error InvalidToToken(address intendedToToken, address actualToToken);

ExpectedAmountZero

Error for when the expected amount is zero.

error ExpectedAmountZero();

InvalidSwapParams

Error for when swap parameters are invalid.

error InvalidSwapParams();

SameAddress

SWAP AND LOCK ///

Error for when the same address is used in a context where it is not allowed.

error SameAddress();

OnlyMintingEnabled

Error for when only minting is enabled.

error OnlyMintingEnabled();

ZeroEthTransfer

RESCUABLE ///

Error for when an ETH transfer of zero is attempted.

error ZeroEthTransfer();

EthTransferFailed

Error for when an ETH transfer fails.

error EthTransferFailed();

ZeroTokenTransfer

Error for when a token transfer of zero is attempted.

error ZeroTokenTransfer();

NotAuthorized

GAUGE REWARD RECEIVER ///

Error for when an action is not authorized.

error NotAuthorized();

CannotRescueRewardToken

Error for when rescuing a reward token is not allowed.

error CannotRescueRewardToken();

InvalidArrayLength

DYFI REDEEMER ///

Error for when an array length is invalid.

error InvalidArrayLength();

PriceFeedOutdated

Error for when a price feed is outdated.

error PriceFeedOutdated();

PriceFeedIncorrectRound

Error for when a price feed round is incorrect.

error PriceFeedIncorrectRound();

PriceFeedReturnedZeroPrice

Error for when a price feed returns a zero price.

error PriceFeedReturnedZeroPrice();

NoDYfiToRedeem

Error for when there is no DYFI to redeem.

error NoDYfiToRedeem();

CallerRewardEthTransferFailed

Error for when an ETH transfer for caller reward fails.

error CallerRewardEthTransferFailed();

GaugeAlreadyDeployed

COVE YEARN GAUGE FACTORY ///

Error for when a gauge has already been deployed.

error GaugeAlreadyDeployed();

GaugeNotDeployed

Error for when a gauge has not been deployed.

error GaugeNotDeployed();

InvalidLPToken

MINICHEF V3 ////

Error for when an LP token is invalid.

error InvalidLPToken();

LPTokenNotAdded

Error for when an LP token has not been added.

error LPTokenNotAdded();

LPTokenDoesNotMatchPoolId

Error for when an LP token does not match the pool ID.

error LPTokenDoesNotMatchPoolId();

InsufficientBalance

Error for when there is an insufficient balance.

error InsufficientBalance();

LPTokenAlreadyAdded

Error for when an LP token has already been added.

error LPTokenAlreadyAdded();

RewardRateTooHigh

Error for when the reward rate is too high.

error RewardRateTooHigh();

InsufficientShares

Yearn4626RouterExt ///

Error for when there are insufficient shares.

error InsufficientShares();

InvalidTo

Error for when the 'to' address is invalid.

error InvalidTo();

InsufficientGas

Error esure the has enough remaining gas.

error InsufficientGas();

TakeAwayNotEnoughBalance

TESTING ///

Error for when there is not enough balance to take away.

error TakeAwayNotEnoughBalance();

StrategyNotAddedToVault

Error for when a strategy has not been added to a vault.

error StrategyNotAddedToVault();

TransferNotAllowedYet

COVE TOKEN ///

Error for when a transfer is attempted before it is allowed.

error TransferNotAllowedYet();

CannotBeBothSenderAndReceiver

Error for when an address is being added as both a sender and a receiver.

error CannotBeBothSenderAndReceiver();

UnpauseTooEarly

Error for when an unpause is attempted too early.

error UnpauseTooEarly();

PausePeriodTooLong

Error for when the pause period is too long.

error PausePeriodTooLong();

MintingAllowedTooEarly

Error for when minting is attempted too early.

error MintingAllowedTooEarly();

InflationTooLarge

Error for when the mint amount exceeds the cap.

error InflationTooLarge();

AccessControlEnumerableUnauthorizedAccount

error AccessControlEnumerableUnauthorizedAccount(address account, bytes32 neededRole);

Unauthorized

Error for when an action is unauthorized.

error Unauthorized();

ExpectedPause

Error for when a pause is expected but not enacted.

error ExpectedPause();

AddressNotContract

COVE YEARN GAUGE FACTORY ///

Error for when an address is not a contract.

error AddressNotContract();