ErrorTypes ​
Constants ​
AdminModule__AddressZero ​
| | Admin Module | |__________________________________
thrown when an input address is zero
uint256 internal constant AdminModule__AddressZero = 10001AdminModule__OnlyGovernance ​
thrown when msg.sender is not governance
uint256 internal constant AdminModule__OnlyGovernance = 10002AdminModule__OnlyAuths ​
thrown when msg.sender is not auth
uint256 internal constant AdminModule__OnlyAuths = 10003AdminModule__OnlyGuardians ​
thrown when msg.sender is not guardian
uint256 internal constant AdminModule__OnlyGuardians = 10004AdminModule__LimitZero ​
thrown when base withdrawal limit, base debt limit or max withdrawal limit is sent as 0
uint256 internal constant AdminModule__LimitZero = 10005AdminModule__InvalidParams ​
thrown whenever an invalid input param is given
uint256 internal constant AdminModule__InvalidParams = 10006AdminModule__UserNotPausable ​
thrown if user class 1 is paused (can not be paused)
uint256 internal constant AdminModule__UserNotPausable = 10007AdminModule__UserNotPaused ​
thrown if user is tried to be unpaused but is not paused in the first place
uint256 internal constant AdminModule__UserNotPaused = 10008AdminModule__UserNotDefined ​
thrown if user is not defined yet: Governance didn't yet set any config for this user on a particular token
uint256 internal constant AdminModule__UserNotDefined = 10009AdminModule__InvalidConfigOrder ​
thrown if a token is configured in an invalid order: 1. Set rate config for token 2. Set token config 3. allow any user.
uint256 internal constant AdminModule__InvalidConfigOrder = 10010AdminModule__RevenueCollectorNotSet ​
thrown if revenue is collected when revenue collector address is not set
uint256 internal constant AdminModule__RevenueCollectorNotSet = 10011AdminModule__ValueOverflow__RATE_AT_UTIL_ZERO ​
all ValueOverflow errors below are thrown if a certain input param overflows the allowed storage size
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_ZERO = 10012AdminModule__ValueOverflow__RATE_AT_UTIL_KINK ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK = 10013AdminModule__ValueOverflow__RATE_AT_UTIL_MAX ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_MAX = 10014AdminModule__ValueOverflow__RATE_AT_UTIL_KINK1 ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK1 = 10015AdminModule__ValueOverflow__RATE_AT_UTIL_KINK2 ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK2 = 10016AdminModule__ValueOverflow__RATE_AT_UTIL_MAX_V2 ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_MAX_V2 = 10017AdminModule__ValueOverflow__FEE ​
uint256 internal constant AdminModule__ValueOverflow__FEE = 10018AdminModule__ValueOverflow__THRESHOLD ​
uint256 internal constant AdminModule__ValueOverflow__THRESHOLD = 10019AdminModule__ValueOverflow__EXPAND_PERCENT ​
uint256 internal constant AdminModule__ValueOverflow__EXPAND_PERCENT = 10020AdminModule__ValueOverflow__EXPAND_DURATION ​
uint256 internal constant AdminModule__ValueOverflow__EXPAND_DURATION = 10021AdminModule__ValueOverflow__EXPAND_PERCENT_BORROW ​
uint256 internal constant AdminModule__ValueOverflow__EXPAND_PERCENT_BORROW = 10022AdminModule__ValueOverflow__EXPAND_DURATION_BORROW ​
uint256 internal constant AdminModule__ValueOverflow__EXPAND_DURATION_BORROW = 10023AdminModule__ValueOverflow__EXCHANGE_PRICES ​
uint256 internal constant AdminModule__ValueOverflow__EXCHANGE_PRICES = 10024AdminModule__ValueOverflow__UTILIZATION ​
uint256 internal constant AdminModule__ValueOverflow__UTILIZATION = 10025AdminModule__AddressNotAContract ​
thrown when an address is not a contract
uint256 internal constant AdminModule__AddressNotAContract = 10026AdminModule__ValueOverflow__MAX_UTILIZATION ​
uint256 internal constant AdminModule__ValueOverflow__MAX_UTILIZATION = 10027AdminModule__TokenInvalidDecimalsRange ​
thrown if a token that is being listed has not between 6 and 18 decimals
uint256 internal constant AdminModule__TokenInvalidDecimalsRange = 10028UserModule__UserNotDefined ​
| | User Module | |__________________________________
thrown when user operations are paused for an interacted token
uint256 internal constant UserModule__UserNotDefined = 11001UserModule__UserPaused ​
thrown when user operations are paused for an interacted token
uint256 internal constant UserModule__UserPaused = 11002UserModule__WithdrawalLimitReached ​
thrown when user's try to withdraw below withdrawal limit
uint256 internal constant UserModule__WithdrawalLimitReached = 11003UserModule__BorrowLimitReached ​
thrown when user's try to borrow above borrow limit
uint256 internal constant UserModule__BorrowLimitReached = 11004UserModule__OperateAmountsZero ​
thrown when user sent supply/withdraw and borrow/payback both as 0
uint256 internal constant UserModule__OperateAmountsZero = 11005UserModule__OperateAmountOutOfBounds ​
thrown when user sent supply/withdraw or borrow/payback both as bigger than 2**128
uint256 internal constant UserModule__OperateAmountOutOfBounds = 11006UserModule__OperateAmountInsufficient ​
thrown when the operate amount for supply / withdraw / borrow / payback is below the minimum amount that would cause a storage difference after BigMath & rounding imprecision. Extremely unlikely to ever happen for all normal use-cases.
uint256 internal constant UserModule__OperateAmountInsufficient = 11007UserModule__ReceiverNotDefined ​
thrown when withdraw or borrow is executed but withdrawTo or borrowTo is the zero address
uint256 internal constant UserModule__ReceiverNotDefined = 11008UserModule__TransferAmountOutOfBounds ​
thrown when user did send excess or insufficient amount (beyond rounding issues)
uint256 internal constant UserModule__TransferAmountOutOfBounds = 11009UserModule__MsgValueForNonNativeToken ​
thrown when user sent msg.value along for an operation not for the native token
uint256 internal constant UserModule__MsgValueForNonNativeToken = 11010UserModule__MaxUtilizationReached ​
thrown when a borrow operation is done when utilization is above 100%
uint256 internal constant UserModule__MaxUtilizationReached = 11011UserModule__ValueOverflow__EXCHANGE_PRICES ​
all ValueOverflow errors below are thrown if a certain input param or calc result overflows the allowed storage size
uint256 internal constant UserModule__ValueOverflow__EXCHANGE_PRICES = 11012UserModule__ValueOverflow__UTILIZATION ​
uint256 internal constant UserModule__ValueOverflow__UTILIZATION = 11013UserModule__ValueOverflow__TOTAL_SUPPLY ​
uint256 internal constant UserModule__ValueOverflow__TOTAL_SUPPLY = 11014UserModule__ValueOverflow__TOTAL_BORROW ​
uint256 internal constant UserModule__ValueOverflow__TOTAL_BORROW = 11015UserModule__SkipTransfersInvalid ​
thrown when SKIP_TRANSFERS is set but the input params are invalid for skipping transfers
uint256 internal constant UserModule__SkipTransfersInvalid = 11016UserModule__OperateAmountRatioExcess ​
thrown when a new operate amount is > 10_000 * existing total amount AND the amount is bigger than 2 ** 80
uint256 internal constant UserModule__OperateAmountRatioExcess = 11017UserModule__NetTransfersInvalid ​
thrown when NET_TRANSFERS is set but the input params are invalid for net transfers
uint256 internal constant UserModule__NetTransfersInvalid = 11018LiquidityHelpers__Reentrancy ​
| | LiquidityHelpers | |__________________________________
thrown when a reentrancy happens
uint256 internal constant LiquidityHelpers__Reentrancy = 12001
