Skip to content

ErrorTypes ​

AdminModule__AddressZero ​

solidity
uint256 AdminModule__AddressZero

thrown when an input address is zero

AdminModule__OnlyGovernance ​

solidity
uint256 AdminModule__OnlyGovernance

thrown when msg.sender is not governance

AdminModule__OnlyAuths ​

solidity
uint256 AdminModule__OnlyAuths

thrown when msg.sender is not auth

AdminModule__OnlyGuardians ​

solidity
uint256 AdminModule__OnlyGuardians

thrown when msg.sender is not guardian

AdminModule__LimitZero ​

solidity
uint256 AdminModule__LimitZero

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

AdminModule__InvalidParams ​

solidity
uint256 AdminModule__InvalidParams

thrown whenever an invalid input param is given

AdminModule__UserNotPausable ​

solidity
uint256 AdminModule__UserNotPausable

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

AdminModule__UserNotPaused ​

solidity
uint256 AdminModule__UserNotPaused

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

AdminModule__UserNotDefined ​

solidity
uint256 AdminModule__UserNotDefined

thrown if user is not defined yet: Governance didn't yet set any config for this user on a particular token

AdminModule__InvalidConfigOrder ​

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

AdminModule__RevenueCollectorNotSet ​

solidity
uint256 AdminModule__RevenueCollectorNotSet

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

AdminModuleValueOverflowRATE_AT_UTIL_ZERO ​

solidity
uint256 AdminModule__ValueOverflow__RATE_AT_UTIL_ZERO

all ValueOverflow errors below are thrown if a certain input param overflows the allowed storage size

AdminModuleValueOverflowRATE_AT_UTIL_KINK ​

solidity
uint256 AdminModule__ValueOverflow__RATE_AT_UTIL_KINK

AdminModuleValueOverflowRATE_AT_UTIL_MAX ​

solidity
uint256 AdminModule__ValueOverflow__RATE_AT_UTIL_MAX

AdminModuleValueOverflowRATE_AT_UTIL_KINK1 ​

solidity
uint256 AdminModule__ValueOverflow__RATE_AT_UTIL_KINK1

AdminModuleValueOverflowRATE_AT_UTIL_KINK2 ​

solidity
uint256 AdminModule__ValueOverflow__RATE_AT_UTIL_KINK2

AdminModuleValueOverflowRATE_AT_UTIL_MAX_V2 ​

solidity
uint256 AdminModule__ValueOverflow__RATE_AT_UTIL_MAX_V2

AdminModuleValueOverflowFEE ​

solidity
uint256 AdminModule__ValueOverflow__FEE

AdminModuleValueOverflowTHRESHOLD ​

solidity
uint256 AdminModule__ValueOverflow__THRESHOLD

AdminModuleValueOverflowEXPAND_PERCENT ​

solidity
uint256 AdminModule__ValueOverflow__EXPAND_PERCENT

AdminModuleValueOverflowEXPAND_DURATION ​

solidity
uint256 AdminModule__ValueOverflow__EXPAND_DURATION

AdminModuleValueOverflowEXPAND_PERCENT_BORROW ​

solidity
uint256 AdminModule__ValueOverflow__EXPAND_PERCENT_BORROW

AdminModuleValueOverflowEXPAND_DURATION_BORROW ​

solidity
uint256 AdminModule__ValueOverflow__EXPAND_DURATION_BORROW

AdminModuleValueOverflowEXCHANGE_PRICES ​

solidity
uint256 AdminModule__ValueOverflow__EXCHANGE_PRICES

AdminModuleValueOverflowUTILIZATION ​

solidity
uint256 AdminModule__ValueOverflow__UTILIZATION

AdminModule__AddressNotAContract ​

solidity
uint256 AdminModule__AddressNotAContract

thrown when an address is not a contract

AdminModuleValueOverflowMAX_UTILIZATION ​

solidity
uint256 AdminModule__ValueOverflow__MAX_UTILIZATION

AdminModule__TokenInvalidDecimalsRange ​

solidity
uint256 AdminModule__TokenInvalidDecimalsRange

thrown if a token that is being listed has not between 6 and 18 decimals

UserModule__UserNotDefined ​

solidity
uint256 UserModule__UserNotDefined

thrown when user operations are paused for an interacted token

UserModule__UserPaused ​

solidity
uint256 UserModule__UserPaused

thrown when user operations are paused for an interacted token

UserModule__WithdrawalLimitReached ​

solidity
uint256 UserModule__WithdrawalLimitReached

thrown when user's try to withdraw below withdrawal limit

UserModule__BorrowLimitReached ​

solidity
uint256 UserModule__BorrowLimitReached

thrown when user's try to borrow above borrow limit

UserModule__OperateAmountsZero ​

solidity
uint256 UserModule__OperateAmountsZero

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

UserModule__OperateAmountOutOfBounds ​

solidity
uint256 UserModule__OperateAmountOutOfBounds

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

UserModule__OperateAmountInsufficient ​

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

UserModule__ReceiverNotDefined ​

solidity
uint256 UserModule__ReceiverNotDefined

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

UserModule__TransferAmountOutOfBounds ​

solidity
uint256 UserModule__TransferAmountOutOfBounds

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

UserModule__MsgValueForNonNativeToken ​

solidity
uint256 UserModule__MsgValueForNonNativeToken

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

UserModule__MaxUtilizationReached ​

solidity
uint256 UserModule__MaxUtilizationReached

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

UserModuleValueOverflowEXCHANGE_PRICES ​

solidity
uint256 UserModule__ValueOverflow__EXCHANGE_PRICES

all ValueOverflow errors below are thrown if a certain input param or calc result overflows the allowed storage size

UserModuleValueOverflowUTILIZATION ​

solidity
uint256 UserModule__ValueOverflow__UTILIZATION

UserModuleValueOverflowTOTAL_SUPPLY ​

solidity
uint256 UserModule__ValueOverflow__TOTAL_SUPPLY

UserModuleValueOverflowTOTAL_BORROW ​

solidity
uint256 UserModule__ValueOverflow__TOTAL_BORROW

UserModule__SkipTransfersInvalid ​

solidity
uint256 UserModule__SkipTransfersInvalid

thrown when SKIP_TRANSFERS is set but the input params are invalid for skipping transfers

LiquidityHelpers__Reentrancy ​

solidity
uint256 LiquidityHelpers__Reentrancy

thrown when a reentrancy happens