Skip to content

ErrorTypes ​

Git Source

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

solidity
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)

solidity
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)

solidity
uint256 internal constant fToken__MaxAmount = 20003;

fToken__InvalidParams ​

thrown when invalid params are sent to a method, e.g. zero address

solidity
uint256 internal constant fToken__InvalidParams = 20004;

fToken__Unauthorized ​

thrown when an unauthorized caller is trying to execute an auth-protected method

solidity
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.

solidity
uint256 internal constant fToken__PermitFromOwnerCall = 20006;

fToken__Reentrancy ​

thrown when a reentrancy is detected.

solidity
uint256 internal constant fToken__Reentrancy = 20007;

fToken__ExchangePriceOverflow ​

thrown when _tokenExchangePrice overflows type(uint64).max

solidity
uint256 internal constant fToken__ExchangePriceOverflow = 20008;

fToken__NotRebalancer ​

thrown when msg.sender is not rebalancer

solidity
uint256 internal constant fToken__NotRebalancer = 20009;

fToken__NotNativeUnderlying ​

thrown when rebalance is called with msg.value > 0 for non NativeUnderlying fToken

solidity
uint256 internal constant fToken__NotNativeUnderlying = 20010;

fToken__LiquidityExchangePriceUnexpected ​

thrown when the received new liquidity exchange price is of unexpected value (< than the old one)

solidity
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

solidity
uint256 internal constant fTokenNativeUnderlying__TransferInsufficient = 21001;

fTokenNativeUnderlying__UnexpectedLiquidityCallback ​

thrown when a liquidity callback is called for a native token operation

solidity
uint256 internal constant fTokenNativeUnderlying__UnexpectedLiquidityCallback = 21002;

LendingFactory__InvalidParams ​

| | Lending Factory | |__________________________________

thrown when a method is called with invalid params

solidity
uint256 internal constant LendingFactory__InvalidParams = 22001;

LendingFactory__ZeroAddress ​

thrown when the provided input param address is zero

solidity
uint256 internal constant LendingFactory__ZeroAddress = 22002;

LendingFactory__TokenExists ​

thrown when the token already exists

solidity
uint256 internal constant LendingFactory__TokenExists = 22003;

LendingFactory__LiquidityNotConfigured ​

thrown when the fToken has not yet been configured at Liquidity

solidity
uint256 internal constant LendingFactory__LiquidityNotConfigured = 22004;

LendingFactory__Unauthorized ​

thrown when an unauthorized caller is trying to execute an auth-protected method

solidity
uint256 internal constant LendingFactory__Unauthorized = 22005;

LendingRewardsRateModel__InvalidParams ​

| | Lending Rewards Rate Model | |__________________________________

thrown when invalid params are given as input

solidity
uint256 internal constant LendingRewardsRateModel__InvalidParams = 23001;

LendingRewardsRateModel__MaxRate ​

thrown when calculated rewards rate is exceeding the maximum rate

solidity
uint256 internal constant LendingRewardsRateModel__MaxRate = 23002;

LendingRewardsRateModel__NotTheInitiator ​

thrown when start is called by any other address other than initiator

solidity
uint256 internal constant LendingRewardsRateModel__NotTheInitiator = 23003;

LendingRewardsRateModel__AlreadyStarted ​

thrown when start is called after the rewards are already started

solidity
uint256 internal constant LendingRewardsRateModel__AlreadyStarted = 23004;

LendingRewardsRateModel__ZeroAddress ​

thrown when the provided input param address is zero

solidity
uint256 internal constant LendingRewardsRateModel__ZeroAddress = 23005;