ErrorTypes ​
State Variables ​
AdminModule__AddressZero ​
| | Admin Module | |__________________________________
thrown when an input address is zero
uint256 internal constant AdminModule__AddressZero = 10001;
AdminModule__OnlyGovernance ​
thrown when msg.sender is not governance
uint256 internal constant AdminModule__OnlyGovernance = 10002;
AdminModule__OnlyAuths ​
thrown when msg.sender is not auth
uint256 internal constant AdminModule__OnlyAuths = 10003;
AdminModule__OnlyGuardians ​
thrown when msg.sender is not guardian
uint256 internal constant AdminModule__OnlyGuardians = 10004;
AdminModule__LimitZero ​
thrown when base withdrawal limit, base debt limit or max withdrawal limit is sent as 0
uint256 internal constant AdminModule__LimitZero = 10005;
AdminModule__InvalidParams ​
thrown whenever an invalid input param is given
uint256 internal constant AdminModule__InvalidParams = 10006;
AdminModule__UserNotPausable ​
thrown if user class 1 is paused (can not be paused)
uint256 internal constant AdminModule__UserNotPausable = 10007;
AdminModule__UserNotPaused ​
thrown if user is tried to be unpaused but is not paused in the first place
uint256 internal constant AdminModule__UserNotPaused = 10008;
AdminModule__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 = 10009;
AdminModule__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 = 10010;
AdminModule__RevenueCollectorNotSet ​
thrown if revenue is collected when revenue collector address is not set
uint256 internal constant AdminModule__RevenueCollectorNotSet = 10011;
AdminModule__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 = 10012;
AdminModule__ValueOverflow__RATE_AT_UTIL_KINK ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK = 10013;
AdminModule__ValueOverflow__RATE_AT_UTIL_MAX ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_MAX = 10014;
AdminModule__ValueOverflow__RATE_AT_UTIL_KINK1 ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK1 = 10015;
AdminModule__ValueOverflow__RATE_AT_UTIL_KINK2 ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK2 = 10016;
AdminModule__ValueOverflow__RATE_AT_UTIL_MAX_V2 ​
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_MAX_V2 = 10017;
AdminModule__ValueOverflow__FEE ​
uint256 internal constant AdminModule__ValueOverflow__FEE = 10018;
AdminModule__ValueOverflow__THRESHOLD ​
uint256 internal constant AdminModule__ValueOverflow__THRESHOLD = 10019;
AdminModule__ValueOverflow__EXPAND_PERCENT ​
uint256 internal constant AdminModule__ValueOverflow__EXPAND_PERCENT = 10020;
AdminModule__ValueOverflow__EXPAND_DURATION ​
uint256 internal constant AdminModule__ValueOverflow__EXPAND_DURATION = 10021;
AdminModule__ValueOverflow__EXPAND_PERCENT_BORROW ​
uint256 internal constant AdminModule__ValueOverflow__EXPAND_PERCENT_BORROW = 10022;
AdminModule__ValueOverflow__EXPAND_DURATION_BORROW ​
uint256 internal constant AdminModule__ValueOverflow__EXPAND_DURATION_BORROW = 10023;
AdminModule__ValueOverflow__EXCHANGE_PRICES ​
uint256 internal constant AdminModule__ValueOverflow__EXCHANGE_PRICES = 10024;
AdminModule__ValueOverflow__UTILIZATION ​
uint256 internal constant AdminModule__ValueOverflow__UTILIZATION = 10025;
AdminModule__AddressNotAContract ​
thrown when an address is not a contract
uint256 internal constant AdminModule__AddressNotAContract = 10026;
AdminModule__ValueOverflow__MAX_UTILIZATION ​
uint256 internal constant AdminModule__ValueOverflow__MAX_UTILIZATION = 10027;
AdminModule__TokenInvalidDecimalsRange ​
thrown if a token that is being listed has not between 6 and 18 decimals
uint256 internal constant AdminModule__TokenInvalidDecimalsRange = 10028;
UserModule__UserNotDefined ​
| | User Module | |__________________________________
thrown when user operations are paused for an interacted token
uint256 internal constant UserModule__UserNotDefined = 11001;
UserModule__UserPaused ​
thrown when user operations are paused for an interacted token
uint256 internal constant UserModule__UserPaused = 11002;
UserModule__WithdrawalLimitReached ​
thrown when user's try to withdraw below withdrawal limit
uint256 internal constant UserModule__WithdrawalLimitReached = 11003;
UserModule__BorrowLimitReached ​
thrown when user's try to borrow above borrow limit
uint256 internal constant UserModule__BorrowLimitReached = 11004;
UserModule__OperateAmountsZero ​
thrown when user sent supply/withdraw and borrow/payback both as 0
uint256 internal constant UserModule__OperateAmountsZero = 11005;
UserModule__OperateAmountOutOfBounds ​
thrown when user sent supply/withdraw or borrow/payback both as bigger than 2**128
uint256 internal constant UserModule__OperateAmountOutOfBounds = 11006;
UserModule__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 = 11007;
UserModule__ReceiverNotDefined ​
thrown when withdraw or borrow is executed but withdrawTo or borrowTo is the zero address
uint256 internal constant UserModule__ReceiverNotDefined = 11008;
UserModule__TransferAmountOutOfBounds ​
thrown when user did send excess or insufficient amount (beyond rounding issues)
uint256 internal constant UserModule__TransferAmountOutOfBounds = 11009;
UserModule__MsgValueForNonNativeToken ​
thrown when user sent msg.value along for an operation not for the native token
uint256 internal constant UserModule__MsgValueForNonNativeToken = 11010;
UserModule__MaxUtilizationReached ​
thrown when a borrow operation is done when utilization is above 100%
uint256 internal constant UserModule__MaxUtilizationReached = 11011;
UserModule__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 = 11012;
UserModule__ValueOverflow__UTILIZATION ​
uint256 internal constant UserModule__ValueOverflow__UTILIZATION = 11013;
UserModule__ValueOverflow__TOTAL_SUPPLY ​
uint256 internal constant UserModule__ValueOverflow__TOTAL_SUPPLY = 11014;
UserModule__ValueOverflow__TOTAL_BORROW ​
uint256 internal constant UserModule__ValueOverflow__TOTAL_BORROW = 11015;
UserModule__SkipTransfersInvalid ​
thrown when SKIP_TRANSFERS is set but the input params are invalid for skipping transfers
uint256 internal constant UserModule__SkipTransfersInvalid = 11016;
LiquidityHelpers__Reentrancy ​
| | LiquidityHelpers | |__________________________________
thrown when a reentrancy happens
uint256 internal constant LiquidityHelpers__Reentrancy = 12001;