ErrorTypes ​
State Variables ​
fToken__DepositInsignificant ​
| | fToken | |__________________________________
thrown when a deposit amount is too small to increase BigMath stored balance in Liquidity. precision of BigMath is 1e12, so if token holds 120_000_000_000 USDC, min amount to make a difference would be 0.1 USDC. i.e. user would send a very small deposit which mints no shares -> revert
uint256 internal constant fToken__DepositInsignificant = 20001;
fToken__MinAmountOut ​
thrown when minimum output amount is not reached, e.g. for minimum shares minted (deposit) or minimum assets received (redeem)
uint256 internal constant fToken__MinAmountOut = 20002;
fToken__MaxAmount ​
thrown when maximum amount is surpassed, e.g. for maximum shares burned (withdraw) or maximum assets input (mint)
uint256 internal constant fToken__MaxAmount = 20003;
fToken__InvalidParams ​
thrown when invalid params are sent to a method, e.g. zero address
uint256 internal constant fToken__InvalidParams = 20004;
fToken__Unauthorized ​
thrown when an unauthorized caller is trying to execute an auth-protected method
uint256 internal constant fToken__Unauthorized = 20005;
fToken__PermitFromOwnerCall ​
thrown when a with permit / signature method is called from msg.sender that is the owner. Should call the method without permit instead if msg.sender is the owner.
uint256 internal constant fToken__PermitFromOwnerCall = 20006;
fToken__Reentrancy ​
thrown when a reentrancy is detected.
uint256 internal constant fToken__Reentrancy = 20007;
fToken__ExchangePriceOverflow ​
thrown when _tokenExchangePrice overflows type(uint64).max
uint256 internal constant fToken__ExchangePriceOverflow = 20008;
fToken__NotRebalancer ​
thrown when msg.sender is not rebalancer
uint256 internal constant fToken__NotRebalancer = 20009;
fToken__NotNativeUnderlying ​
thrown when rebalance is called with msg.value > 0 for non NativeUnderlying fToken
uint256 internal constant fToken__NotNativeUnderlying = 20010;
fToken__LiquidityExchangePriceUnexpected ​
thrown when the received new liquidity exchange price is of unexpected value (< than the old one)
uint256 internal constant fToken__LiquidityExchangePriceUnexpected = 20011;
fTokenNativeUnderlying__TransferInsufficient ​
| | fToken Native Underlying | |__________________________________
thrown when native deposit is called but sent along msg.value
does not cover the deposit amount
uint256 internal constant fTokenNativeUnderlying__TransferInsufficient = 21001;
fTokenNativeUnderlying__UnexpectedLiquidityCallback ​
thrown when a liquidity callback is called for a native token operation
uint256 internal constant fTokenNativeUnderlying__UnexpectedLiquidityCallback = 21002;
LendingFactory__InvalidParams ​
| | Lending Factory | |__________________________________
thrown when a method is called with invalid params
uint256 internal constant LendingFactory__InvalidParams = 22001;
LendingFactory__ZeroAddress ​
thrown when the provided input param address is zero
uint256 internal constant LendingFactory__ZeroAddress = 22002;
LendingFactory__TokenExists ​
thrown when the token already exists
uint256 internal constant LendingFactory__TokenExists = 22003;
LendingFactory__LiquidityNotConfigured ​
thrown when the fToken has not yet been configured at Liquidity
uint256 internal constant LendingFactory__LiquidityNotConfigured = 22004;
LendingFactory__Unauthorized ​
thrown when an unauthorized caller is trying to execute an auth-protected method
uint256 internal constant LendingFactory__Unauthorized = 22005;
LendingRewardsRateModel__InvalidParams ​
| | Lending Rewards Rate Model | |__________________________________
thrown when invalid params are given as input
uint256 internal constant LendingRewardsRateModel__InvalidParams = 23001;
LendingRewardsRateModel__MaxRate ​
thrown when calculated rewards rate is exceeding the maximum rate
uint256 internal constant LendingRewardsRateModel__MaxRate = 23002;
LendingRewardsRateModel__Unauthorized ​
thrown when msg.sender is not the configurator for admin methods
uint256 internal constant LendingRewardsRateModel__Unauthorized = 23003;
LendingRewardsRateModel__AlreadyStarted ​
thrown when start is called after the rewards are already started
uint256 internal constant LendingRewardsRateModel__AlreadyStarted = 23004;
LendingRewardsRateModel__AlreadyStopped ​
thrown when rewards are already stopped
uint256 internal constant LendingRewardsRateModel__AlreadyStopped = 23005;
LendingRewardsRateModel__NextRewardsQueued ​
thrown when next rewards are already queued
uint256 internal constant LendingRewardsRateModel__NextRewardsQueued = 23006;
LendingRewardsRateModel__NotEnded ​
thrown when current rewards have not ended yet
uint256 internal constant LendingRewardsRateModel__NotEnded = 23007;
LendingRewardsRateModel__NoQueuedRewards ​
thrown when no next rewards are queued
uint256 internal constant LendingRewardsRateModel__NoQueuedRewards = 23008;
LendingRewardsRateModel__MustTransitionToNext ​
thrown when transition to next queued rewards must be executed first
uint256 internal constant LendingRewardsRateModel__MustTransitionToNext = 23009;
LendingRewardsRateModel__NoRewardsStarted ​
thrown when queuing next rewards without having any current rewards ever started
uint256 internal constant LendingRewardsRateModel__NoRewardsStarted = 23010;