Skip to content

ErrorTypes ​

Git Source

State Variables ​

AdminModule__AddressZero ​

| | Admin Module | |__________________________________

thrown when an input address is zero

solidity
uint256 internal constant AdminModule__AddressZero = 10001;

AdminModule__OnlyGovernance ​

thrown when msg.sender is not governance

solidity
uint256 internal constant AdminModule__OnlyGovernance = 10002;

AdminModule__OnlyAuths ​

thrown when msg.sender is not auth

solidity
uint256 internal constant AdminModule__OnlyAuths = 10003;

AdminModule__OnlyGuardians ​

thrown when msg.sender is not guardian

solidity
uint256 internal constant AdminModule__OnlyGuardians = 10004;

AdminModule__LimitZero ​

thrown when base withdrawal limit, base debt limit or max withdrawal limit is sent as 0

solidity
uint256 internal constant AdminModule__LimitZero = 10005;

AdminModule__InvalidParams ​

thrown whenever an invalid input param is given

solidity
uint256 internal constant AdminModule__InvalidParams = 10006;

AdminModule__UserNotPausable ​

thrown if user class 1 is paused (can not be paused)

solidity
uint256 internal constant AdminModule__UserNotPausable = 10007;

AdminModule__UserNotPaused ​

thrown if user is tried to be unpaused but is not paused in the first place

solidity
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

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

solidity
uint256 internal constant AdminModule__InvalidConfigOrder = 10010;

AdminModule__RevenueCollectorNotSet ​

thrown if revenue is collected when revenue collector address is not set

solidity
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

solidity
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_ZERO = 10012;

AdminModule__ValueOverflow__RATE_AT_UTIL_KINK ​

solidity
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK = 10013;

AdminModule__ValueOverflow__RATE_AT_UTIL_MAX ​

solidity
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_MAX = 10014;

AdminModule__ValueOverflow__RATE_AT_UTIL_KINK1 ​

solidity
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK1 = 10015;

AdminModule__ValueOverflow__RATE_AT_UTIL_KINK2 ​

solidity
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_KINK2 = 10016;

AdminModule__ValueOverflow__RATE_AT_UTIL_MAX_V2 ​

solidity
uint256 internal constant AdminModule__ValueOverflow__RATE_AT_UTIL_MAX_V2 = 10017;

AdminModule__ValueOverflow__FEE ​

solidity
uint256 internal constant AdminModule__ValueOverflow__FEE = 10018;

AdminModule__ValueOverflow__THRESHOLD ​

solidity
uint256 internal constant AdminModule__ValueOverflow__THRESHOLD = 10019;

AdminModule__ValueOverflow__EXPAND_PERCENT ​

solidity
uint256 internal constant AdminModule__ValueOverflow__EXPAND_PERCENT = 10020;

AdminModule__ValueOverflow__EXPAND_DURATION ​

solidity
uint256 internal constant AdminModule__ValueOverflow__EXPAND_DURATION = 10021;

AdminModule__ValueOverflow__EXPAND_PERCENT_BORROW ​

solidity
uint256 internal constant AdminModule__ValueOverflow__EXPAND_PERCENT_BORROW = 10022;

AdminModule__ValueOverflow__EXPAND_DURATION_BORROW ​

solidity
uint256 internal constant AdminModule__ValueOverflow__EXPAND_DURATION_BORROW = 10023;

AdminModule__ValueOverflow__EXCHANGE_PRICES ​

solidity
uint256 internal constant AdminModule__ValueOverflow__EXCHANGE_PRICES = 10024;

AdminModule__ValueOverflow__UTILIZATION ​

solidity
uint256 internal constant AdminModule__ValueOverflow__UTILIZATION = 10025;

AdminModule__AddressNotAContract ​

thrown when an address is not a contract

solidity
uint256 internal constant AdminModule__AddressNotAContract = 10026;

AdminModule__ValueOverflow__MAX_UTILIZATION ​

solidity
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

solidity
uint256 internal constant AdminModule__TokenInvalidDecimalsRange = 10028;

UserModule__UserNotDefined ​

| | User Module | |__________________________________

thrown when user operations are paused for an interacted token

solidity
uint256 internal constant UserModule__UserNotDefined = 11001;

UserModule__UserPaused ​

thrown when user operations are paused for an interacted token

solidity
uint256 internal constant UserModule__UserPaused = 11002;

UserModule__WithdrawalLimitReached ​

thrown when user's try to withdraw below withdrawal limit

solidity
uint256 internal constant UserModule__WithdrawalLimitReached = 11003;

UserModule__BorrowLimitReached ​

thrown when user's try to borrow above borrow limit

solidity
uint256 internal constant UserModule__BorrowLimitReached = 11004;

UserModule__OperateAmountsZero ​

thrown when user sent supply/withdraw and borrow/payback both as 0

solidity
uint256 internal constant UserModule__OperateAmountsZero = 11005;

UserModule__OperateAmountOutOfBounds ​

thrown when user sent supply/withdraw or borrow/payback both as bigger than 2**128

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

solidity
uint256 internal constant UserModule__OperateAmountInsufficient = 11007;

UserModule__ReceiverNotDefined ​

thrown when withdraw or borrow is executed but withdrawTo or borrowTo is the zero address

solidity
uint256 internal constant UserModule__ReceiverNotDefined = 11008;

UserModule__TransferAmountOutOfBounds ​

thrown when user did send excess or insufficient amount (beyond rounding issues)

solidity
uint256 internal constant UserModule__TransferAmountOutOfBounds = 11009;

UserModule__MsgValueForNonNativeToken ​

thrown when user sent msg.value along for an operation not for the native token

solidity
uint256 internal constant UserModule__MsgValueForNonNativeToken = 11010;

UserModule__MaxUtilizationReached ​

thrown when a borrow operation is done when utilization is above 100%

solidity
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

solidity
uint256 internal constant UserModule__ValueOverflow__EXCHANGE_PRICES = 11012;

UserModule__ValueOverflow__UTILIZATION ​

solidity
uint256 internal constant UserModule__ValueOverflow__UTILIZATION = 11013;

UserModule__ValueOverflow__TOTAL_SUPPLY ​

solidity
uint256 internal constant UserModule__ValueOverflow__TOTAL_SUPPLY = 11014;

UserModule__ValueOverflow__TOTAL_BORROW ​

solidity
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

solidity
uint256 internal constant UserModule__SkipTransfersInvalid = 11016;

LiquidityHelpers__Reentrancy ​

| | LiquidityHelpers | |__________________________________

thrown when a reentrancy happens

solidity
uint256 internal constant LiquidityHelpers__Reentrancy = 12001;