ErrorTypes

Git Source

State Variables

VaultFactory__InvalidOperation

| | Vault Factory | |__________________________________

uint256 internal constant VaultFactory__InvalidOperation = 30001;

VaultFactory__Unauthorized

uint256 internal constant VaultFactory__Unauthorized = 30002;

VaultFactory__SameTokenNotAllowed

uint256 internal constant VaultFactory__SameTokenNotAllowed = 30003;

VaultFactory__InvalidParams

uint256 internal constant VaultFactory__InvalidParams = 30004;

VaultFactory__InvalidVault

uint256 internal constant VaultFactory__InvalidVault = 30005;

VaultFactory__InvalidVaultAddress

uint256 internal constant VaultFactory__InvalidVaultAddress = 30006;

VaultFactory__OnlyDelegateCallAllowed

uint256 internal constant VaultFactory__OnlyDelegateCallAllowed = 30007;

VaultT1__AlreadyEntered

| | VaultT1 | |__________________________________

thrown at reentrancy

uint256 internal constant VaultT1__AlreadyEntered = 31001;

VaultT1__InvalidOperateAmount

thrown when user sends deposit & borrow amount as 0

uint256 internal constant VaultT1__InvalidOperateAmount = 31002;

VaultT1__InvalidMsgValueOperate

thrown when msg.value is not in sync with native token deposit or payback

uint256 internal constant VaultT1__InvalidMsgValueOperate = 31003;

VaultT1__NotAnOwner

thrown when msg.sender is not the owner of the vault

uint256 internal constant VaultT1__NotAnOwner = 31004;

VaultT1__TickIsEmpty

thrown when user's position does not exist. Sending the wrong index from the frontend

uint256 internal constant VaultT1__TickIsEmpty = 31005;

VaultT1__PositionAboveCF

thrown when the user's position is above CF and the user tries to make it more risky by trying to withdraw or borrow

uint256 internal constant VaultT1__PositionAboveCF = 31006;

VaultT1__TopTickDoesNotExist

thrown when the top tick is not initialized. Happens if the vault is totally new or all the user's left

uint256 internal constant VaultT1__TopTickDoesNotExist = 31007;

VaultT1__InvalidMsgValueLiquidate

thrown when msg.value in liquidate is not in sync payback

uint256 internal constant VaultT1__InvalidMsgValueLiquidate = 31008;

VaultT1__ExcessSlippageLiquidation

thrown when slippage is more on liquidation than what the liquidator sent

uint256 internal constant VaultT1__ExcessSlippageLiquidation = 31009;

VaultT1__NotRebalancer

thrown when msg.sender is not the rebalancer/reserve contract

uint256 internal constant VaultT1__NotRebalancer = 31010;

VaultT1__NftNotOfThisVault

thrown when NFT of one vault interacts with the NFT of other vault

uint256 internal constant VaultT1__NftNotOfThisVault = 31011;

VaultT1__TokenNotInitialized

thrown when the token is not initialized on the liquidity contract

uint256 internal constant VaultT1__TokenNotInitialized = 31012;

VaultT1__NotAnAuth

thrown when admin updates fallback if a non-auth calls vault

uint256 internal constant VaultT1__NotAnAuth = 31013;

VaultT1__ExcessCollateralWithdrawal

thrown in operate when user tries to witdhraw more collateral than deposited

uint256 internal constant VaultT1__ExcessCollateralWithdrawal = 31014;

VaultT1__ExcessDebtPayback

thrown in operate when user tries to payback more debt than borrowed

uint256 internal constant VaultT1__ExcessDebtPayback = 31015;

VaultT1__WithdrawMoreThanOperateLimit

thrown when user try to withdrawal more than operate's withdrawal limit

uint256 internal constant VaultT1__WithdrawMoreThanOperateLimit = 31016;

VaultT1__InvalidLiquidityCallbackAddress

thrown when caller of liquidityCallback is not Liquidity

uint256 internal constant VaultT1__InvalidLiquidityCallbackAddress = 31017;

VaultT1__NotEntered

thrown when reentrancy is not already on

uint256 internal constant VaultT1__NotEntered = 31018;

VaultT1__OnlyDelegateCallAllowed

thrown when someone directly calls secondary implementation contract

uint256 internal constant VaultT1__OnlyDelegateCallAllowed = 31019;

VaultT1__TransferFromFailed

thrown when the safeTransferFrom for a token amount failed

uint256 internal constant VaultT1__TransferFromFailed = 31020;

VaultT1__ExchangePriceOverFlow

thrown when exchange price overflows while updating on storage

uint256 internal constant VaultT1__ExchangePriceOverFlow = 31021;

VaultT1__InvalidLiquidationAmt

thrown when debt to liquidate amt is sent wrong

uint256 internal constant VaultT1__InvalidLiquidationAmt = 31022;

VaultT1__UserCollateralDebtExceed

thrown when user debt or collateral goes above 2128 or below -2128

uint256 internal constant VaultT1__UserCollateralDebtExceed = 31023;

VaultT1__BranchDebtTooLow

thrown if on liquidation branch debt becomes lower than 100

uint256 internal constant VaultT1__BranchDebtTooLow = 31024;

VaultT1__TickDebtTooLow

thrown when tick's debt is less than 10000

uint256 internal constant VaultT1__TickDebtTooLow = 31025;

VaultT1__LiquidityExchangePriceUnexpected

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

uint256 internal constant VaultT1__LiquidityExchangePriceUnexpected = 31026;

VaultT1__UserDebtTooLow

thrown when user's debt is less than 10000

uint256 internal constant VaultT1__UserDebtTooLow = 31027;

VaultT1__InvalidPaybackOrDeposit

thrown when on only payback and only deposit the ratio of position increases

uint256 internal constant VaultT1__InvalidPaybackOrDeposit = 31028;

VaultT1__InvalidLiquidation

thrown when liquidation just happens of a single partial

uint256 internal constant VaultT1__InvalidLiquidation = 31029;

VaultT1__InvalidMsgValueInRebalance

thrown when msg.value is sent wrong in rebalance

uint256 internal constant VaultT1__InvalidMsgValueInRebalance = 31030;

VaultT1__NothingToRebalance

thrown when nothing rebalanced

uint256 internal constant VaultT1__NothingToRebalance = 31031;

ERC721__InvalidParams

| | ERC721 | |__________________________________

uint256 internal constant ERC721__InvalidParams = 32001;

ERC721__Unauthorized

uint256 internal constant ERC721__Unauthorized = 32002;

ERC721__InvalidOperation

uint256 internal constant ERC721__InvalidOperation = 32003;

ERC721__UnsafeRecipient

uint256 internal constant ERC721__UnsafeRecipient = 32004;

ERC721__OutOfBoundsIndex

uint256 internal constant ERC721__OutOfBoundsIndex = 32005;

VaultT1Admin__ValueAboveLimit

| | Vault Admin | |__________________________________

thrown when admin tries to setup invalid value which are crossing limits

uint256 internal constant VaultT1Admin__ValueAboveLimit = 33001;

VaultT1Admin__OnlyDelegateCallAllowed

when someone directly calls admin implementation contract

uint256 internal constant VaultT1Admin__OnlyDelegateCallAllowed = 33002;

VaultT1Admin__NftIdShouldBeNonZero

thrown when auth sends NFT ID as 0 while collecting dust debt

uint256 internal constant VaultT1Admin__NftIdShouldBeNonZero = 33003;

VaultT1Admin__NftNotOfThisVault

thrown when trying to collect dust debt of NFT which is not of this vault

uint256 internal constant VaultT1Admin__NftNotOfThisVault = 33004;

VaultT1Admin__DustDebtIsZero

thrown when dust debt of NFT is 0, meaning nothing to collect

uint256 internal constant VaultT1Admin__DustDebtIsZero = 33005;

VaultT1Admin__FinalDebtShouldBeZero

thrown when final debt after liquidation is not 0, meaning position 100% liquidated

uint256 internal constant VaultT1Admin__FinalDebtShouldBeZero = 33006;

VaultT1Admin__NftNotLiquidated

thrown when NFT is not liquidated state

uint256 internal constant VaultT1Admin__NftNotLiquidated = 33007;

VaultT1Admin__AbsorbedDustDebtIsZero

thrown when total absorbed dust debt is 0

uint256 internal constant VaultT1Admin__AbsorbedDustDebtIsZero = 33008;

VaultT1Admin__AddressZeroNotAllowed

thrown when address is set as 0

uint256 internal constant VaultT1Admin__AddressZeroNotAllowed = 33009;

VaultRewards__Unauthorized

| | Vault Rewards | |__________________________________

uint256 internal constant VaultRewards__Unauthorized = 34001;

VaultRewards__AddressZero

uint256 internal constant VaultRewards__AddressZero = 34002;

VaultRewards__InvalidParams

uint256 internal constant VaultRewards__InvalidParams = 34003;

VaultRewards__NewMagnifierSameAsOldMagnifier

uint256 internal constant VaultRewards__NewMagnifierSameAsOldMagnifier = 34004;

VaultRewards__NotTheInitiator

uint256 internal constant VaultRewards__NotTheInitiator = 34005;

VaultRewards__AlreadyStarted

uint256 internal constant VaultRewards__AlreadyStarted = 34006;

VaultRewards__RewardsNotStartedOrEnded

uint256 internal constant VaultRewards__RewardsNotStartedOrEnded = 34007;