Skip to content

ErrorTypes ​

VaultFactory__InvalidOperation ​

solidity
uint256 VaultFactory__InvalidOperation

VaultFactory__Unauthorized ​

solidity
uint256 VaultFactory__Unauthorized

VaultFactory__SameTokenNotAllowed ​

solidity
uint256 VaultFactory__SameTokenNotAllowed

VaultFactory__InvalidParams ​

solidity
uint256 VaultFactory__InvalidParams

VaultFactory__InvalidVault ​

solidity
uint256 VaultFactory__InvalidVault

VaultFactory__InvalidVaultAddress ​

solidity
uint256 VaultFactory__InvalidVaultAddress

VaultFactory__OnlyDelegateCallAllowed ​

solidity
uint256 VaultFactory__OnlyDelegateCallAllowed

Vault__AlreadyEntered ​

solidity
uint256 Vault__AlreadyEntered

thrown at reentrancy

Vault__InvalidOperateAmount ​

solidity
uint256 Vault__InvalidOperateAmount

thrown when user sends deposit & borrow amount as 0

Vault__InvalidMsgValueOperate ​

solidity
uint256 Vault__InvalidMsgValueOperate

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

Vault__NotAnOwner ​

solidity
uint256 Vault__NotAnOwner

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

Vault__TickIsEmpty ​

solidity
uint256 Vault__TickIsEmpty

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

Vault__PositionAboveCF ​

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

Vault__TopTickDoesNotExist ​

solidity
uint256 Vault__TopTickDoesNotExist

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

Vault__InvalidMsgValueLiquidate ​

solidity
uint256 Vault__InvalidMsgValueLiquidate

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

Vault__ExcessSlippageLiquidation ​

solidity
uint256 Vault__ExcessSlippageLiquidation

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

Vault__NotRebalancer ​

solidity
uint256 Vault__NotRebalancer

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

Vault__NftNotOfThisVault ​

solidity
uint256 Vault__NftNotOfThisVault

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

Vault__TokenNotInitialized ​

solidity
uint256 Vault__TokenNotInitialized

thrown when the token is not initialized on the liquidity contract

Vault__NotAnAuth ​

solidity
uint256 Vault__NotAnAuth

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

Vault__ExcessCollateralWithdrawal ​

solidity
uint256 Vault__ExcessCollateralWithdrawal

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

Vault__ExcessDebtPayback ​

solidity
uint256 Vault__ExcessDebtPayback

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

Vault__WithdrawMoreThanOperateLimit ​

solidity
uint256 Vault__WithdrawMoreThanOperateLimit

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

Vault__InvalidLiquidityCallbackAddress ​

solidity
uint256 Vault__InvalidLiquidityCallbackAddress

thrown when caller of liquidityCallback is not Liquidity

Vault__NotEntered ​

solidity
uint256 Vault__NotEntered

thrown when reentrancy is not already on

Vault__OnlyDelegateCallAllowed ​

solidity
uint256 Vault__OnlyDelegateCallAllowed

thrown when someone directly calls operate or secondary implementation contract

Vault__TransferFromFailed ​

solidity
uint256 Vault__TransferFromFailed

thrown when the safeTransferFrom for a token amount failed

Vault__ExchangePriceOverFlow ​

solidity
uint256 Vault__ExchangePriceOverFlow

thrown when exchange price overflows while updating on storage

Vault__InvalidLiquidationAmt ​

solidity
uint256 Vault__InvalidLiquidationAmt

thrown when debt to liquidate amt is sent wrong

Vault__UserCollateralDebtExceed ​

solidity
uint256 Vault__UserCollateralDebtExceed

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

Vault__BranchDebtTooLow ​

solidity
uint256 Vault__BranchDebtTooLow

thrown if on liquidation branch debt becomes lower than 100

Vault__TickDebtTooLow ​

solidity
uint256 Vault__TickDebtTooLow

thrown when tick's debt is less than 10000

Vault__LiquidityExchangePriceUnexpected ​

solidity
uint256 Vault__LiquidityExchangePriceUnexpected

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

Vault__UserDebtTooLow ​

solidity
uint256 Vault__UserDebtTooLow

thrown when user's debt is less than 10000

Vault__InvalidPaybackOrDeposit ​

solidity
uint256 Vault__InvalidPaybackOrDeposit

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

Vault__InvalidLiquidation ​

solidity
uint256 Vault__InvalidLiquidation

thrown when liquidation just happens of a single partial or when there's nothing to liquidate

Vault__InvalidMsgValueInRebalance ​

solidity
uint256 Vault__InvalidMsgValueInRebalance

thrown when msg.value is sent wrong in rebalance

Vault__NothingToRebalance ​

solidity
uint256 Vault__NothingToRebalance

thrown when nothing rebalanced

Vault__LiquidationReverts ​

solidity
uint256 Vault__LiquidationReverts

thrown on unforseen liquidation scenarios. Might never come in use.

Vault__InvalidOraclePrice ​

solidity
uint256 Vault__InvalidOraclePrice

thrown when oracle price is > 1e54

Vault__ImproperConstantsSetup ​

solidity
uint256 Vault__ImproperConstantsSetup

thrown when constants are not set properly via contructor

Vault__FetchLatestPositionFailed ​

solidity
uint256 Vault__FetchLatestPositionFailed

thrown when externally calling fetchLatestPosition function

Vault__InvalidDexCallbackAddress ​

solidity
uint256 Vault__InvalidDexCallbackAddress

thrown when dex callback is not from dex

Vault__DexFromAddressAlreadySet ​

solidity
uint256 Vault__DexFromAddressAlreadySet

thrown when dex callback is already set

Vault__InvalidMinMaxInRebalance ​

solidity
uint256 Vault__InvalidMinMaxInRebalance

thrown when an invalid min / max amounts config is passed to rebalance()

ERC721__InvalidParams ​

solidity
uint256 ERC721__InvalidParams

ERC721__Unauthorized ​

solidity
uint256 ERC721__Unauthorized

ERC721__InvalidOperation ​

solidity
uint256 ERC721__InvalidOperation

ERC721__UnsafeRecipient ​

solidity
uint256 ERC721__UnsafeRecipient

ERC721__OutOfBoundsIndex ​

solidity
uint256 ERC721__OutOfBoundsIndex

VaultAdmin__ValueAboveLimit ​

solidity
uint256 VaultAdmin__ValueAboveLimit

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

VaultAdmin__OnlyDelegateCallAllowed ​

solidity
uint256 VaultAdmin__OnlyDelegateCallAllowed

when someone directly calls admin implementation contract

VaultAdmin__NftIdShouldBeNonZero ​

solidity
uint256 VaultAdmin__NftIdShouldBeNonZero

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

VaultAdmin__NftNotOfThisVault ​

solidity
uint256 VaultAdmin__NftNotOfThisVault

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

VaultAdmin__DustDebtIsZero ​

solidity
uint256 VaultAdmin__DustDebtIsZero

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

VaultAdmin__FinalDebtShouldBeZero ​

solidity
uint256 VaultAdmin__FinalDebtShouldBeZero

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

VaultAdmin__NftNotLiquidated ​

solidity
uint256 VaultAdmin__NftNotLiquidated

thrown when NFT is not liquidated state

VaultAdmin__AbsorbedDustDebtIsZero ​

solidity
uint256 VaultAdmin__AbsorbedDustDebtIsZero

thrown when total absorbed dust debt is 0

VaultAdmin__AddressZeroNotAllowed ​

solidity
uint256 VaultAdmin__AddressZeroNotAllowed

thrown when address is set as 0

VaultRewards__Unauthorized ​

solidity
uint256 VaultRewards__Unauthorized

VaultRewards__AddressZero ​

solidity
uint256 VaultRewards__AddressZero

VaultRewards__InvalidParams ​

solidity
uint256 VaultRewards__InvalidParams

VaultRewards__NewMagnifierSameAsOldMagnifier ​

solidity
uint256 VaultRewards__NewMagnifierSameAsOldMagnifier

VaultRewards__NotTheInitiator ​

solidity
uint256 VaultRewards__NotTheInitiator

VaultRewards__NotTheGovernance ​

solidity
uint256 VaultRewards__NotTheGovernance

VaultRewards__AlreadyStarted ​

solidity
uint256 VaultRewards__AlreadyStarted

VaultRewards__RewardsNotStartedOrEnded ​

solidity
uint256 VaultRewards__RewardsNotStartedOrEnded

VaultRewards__InvalidStartTime ​

solidity
uint256 VaultRewards__InvalidStartTime

VaultRewards__AlreadyEnded ​

solidity
uint256 VaultRewards__AlreadyEnded

VaultDex__InvalidOperateAmount ​

solidity
uint256 VaultDex__InvalidOperateAmount

VaultDex__DebtSharesPaidMoreThanAvailableLiquidation ​

solidity
uint256 VaultDex__DebtSharesPaidMoreThanAvailableLiquidation

VaultBorrowRewards__Unauthorized ​

solidity
uint256 VaultBorrowRewards__Unauthorized

VaultBorrowRewards__AddressZero ​

solidity
uint256 VaultBorrowRewards__AddressZero

VaultBorrowRewards__InvalidParams ​

solidity
uint256 VaultBorrowRewards__InvalidParams

VaultBorrowRewards__NewMagnifierSameAsOldMagnifier ​

solidity
uint256 VaultBorrowRewards__NewMagnifierSameAsOldMagnifier

VaultBorrowRewards__NotTheInitiator ​

solidity
uint256 VaultBorrowRewards__NotTheInitiator

VaultBorrowRewards__NotTheGovernance ​

solidity
uint256 VaultBorrowRewards__NotTheGovernance

VaultBorrowRewards__AlreadyStarted ​

solidity
uint256 VaultBorrowRewards__AlreadyStarted

VaultBorrowRewards__RewardsNotStartedOrEnded ​

solidity
uint256 VaultBorrowRewards__RewardsNotStartedOrEnded

VaultBorrowRewards__InvalidStartTime ​

solidity
uint256 VaultBorrowRewards__InvalidStartTime

VaultBorrowRewards__AlreadyEnded ​

solidity
uint256 VaultBorrowRewards__AlreadyEnded