Ion Protocol
HomeDiscordTwitter
  • Overview
    • ๐Ÿ’งWelcome to Ion Protocol
    • ๐Ÿ“šUnderstanding the Staking and Restaking Ecosystem
    • ๐Ÿ”—Official Links
    • โ”FAQ
  • Ion Protocol
    • โš™๏ธHow Ion Works
    • ๐Ÿ‘ฅReferrals
    • ๐Ÿ’ฆIon Points
  • Lending
    • ๐Ÿ’ฐHow To Lend On Ion
    • ๐ŸŒETH-on-ETH Yield
    • ๐ŸงชLending Mechanisms
      • Composable Markets
      • ZKML-Supported Risk Underwriting
  • Borrowing
    • ๐Ÿ’ธHow To Borrow On Ion
    • ๐Ÿ“ˆMultiplying Rewards
    • ๐Ÿ› ๏ธBorrowing Mechanisms
      • Flash Leverage
      • Interest Rates
      • ZK Proof-of-Reserve
  • Liquidations
    • ๐Ÿ“‰Liquidation Mechanism
    • ๐Ÿง‘โ€๐Ÿ’ปKeepers
  • Supported Collateral
    • LSTs
    • LRTs
    • Exotic ETH-Backed Assets
  • Devs
    • ๐Ÿ’ปSmart Contract Architecture
      • Home
      • Admin
        • ProxyAdmin
        • TransparentUpgradeableProxy
        • ITransparentUpgradeableProxy
      • Flash
        • LRT
          • RsEthHandler
          • EzEthHandler
          • RswEthHandler
          • WeEthHandler
        • LST
          • SwEthHandler
          • EthXHandler
          • WstEthHandler
        • BalancerFlashloanDirectMintHandler constants
        • BalancerFlashloanDirectMintHandler
        • PtHandler
        • IonHandlerBase
        • UniswapFlashloanBalancerSwapHandler
        • UniswapFlashswapDirectMintHandler
        • UniswapFlashswapDirectMintHandlerWithDust
        • UniswapFlashswapHandler
      • Join
        • GemJoin
      • Libraries
        • LRT
          • KelpDaoLibrary
          • EtherFiLibrary
          • RestakedSwellLibrary
          • RenzoLibrary
        • LST
          • StaderLibrary
          • LidoLibrary
          • SwellLibrary
        • math
          • WadRayMath constants
          • WadRayMath
        • uniswap
          • UniswapOracleLibrary
          • TickMath
      • Oracles
        • Reserve
          • LRT
            • EzEthWstEthReserveOracle
            • RsEthWstEthReserveOracle
            • RswEthWstEthReserveOracle
            • WeEthWstEthReserveOracle
          • LST
            • SwEthReserveOracle
            • EthXReserveOracle
            • WstEthReserveOracle
          • Pendle
            • EzEthPtReserveOracle
            • RsEthPtReserveOracle
            • RswEthPtReserveOracle
            • WeEthPtReserveOracle
          • ReserveOracle
          • ReserveFeed
          • ReserveOracle constants
        • Spot
          • LRT
            • EzEthWstEthSpotOracle
            • RsEthWstEthSpotOracle
            • RswEthWstEthSpotOracle
            • WeEthWstEthSpotOracle
          • LST
            • EthXSpotOracle constants
            • EthXSpotOracle
            • IRedstonePriceFeed
            • SwEthSpotOracle
            • WstEthSpotOracle
          • SpotOracle
          • PtSpotOracle
      • Periphery
        • IonInvariants
        • IonLens
        • IlkSlot0
        • IonRegistry
      • Token
        • IERC20Errors
        • RewardToken
      • Vault
        • VaultFactory
        • Vault
      • Whitelist
      • YieldOracle constants
      • YieldOracle
      • YieldOracleNull
      • YieldOraclePendle
      • Errors
      • Constants
      • Seaport Leverage and Deleverage
    • ๐Ÿ“„Deployed Contracts
  • Security
    • ๐Ÿ”Security Reviews
  • Legal
    • Terms of Use
    • Privacy Policy
  • Import
    • ProxyAdmin
Powered by GitBook
On this page
  1. Devs
  2. Smart Contract Architecture

Errors

PreviousYieldOraclePendleNextConstants

Errors

CeilingExceeded

error CeilingExceeded(uint256 newDebt, uint256 debtCeiling);

UnsafePositionChange

error UnsafePositionChange(uint256 newTotalDebtInVault, uint256 collateral, uint256 spot);

UnsafePositionChangeWithoutConsent

error UnsafePositionChangeWithoutConsent(uint8 ilkIndex, address user, address unconsentedOperator);

GemTransferWithoutConsent

error GemTransferWithoutConsent(uint8 ilkIndex, address user, address unconsentedOperator);

UseOfCollateralWithoutConsent

error UseOfCollateralWithoutConsent(uint8 ilkIndex, address depositor, address unconsentedOperator);

TakingWethWithoutConsent

error TakingWethWithoutConsent(address payer, address unconsentedOperator);

VaultCannotBeDusty

error VaultCannotBeDusty(uint256 amountLeft, uint256 dust);

ArithmeticError

error ArithmeticError();

IlkAlreadyAdded

error IlkAlreadyAdded(address ilkAddress);

IlkNotInitialized

error IlkNotInitialized(uint256 ilkIndex);

DepositSurpassesSupplyCap

error DepositSurpassesSupplyCap(uint256 depositAmount, uint256 supplyCap);

MaxIlksReached

error MaxIlksReached();

InvalidIlkAddress

error InvalidIlkAddress();

InvalidInterestRateModule

error InvalidInterestRateModule(InterestRate invalidInterestRateModule);

InvalidWhitelist

error InvalidWhitelist();

InvalidExchangeRate

error InvalidExchangeRate(uint256 ilkIndex);

InvalidIlkIndex

error InvalidIlkIndex(uint256 ilkIndex);

AlreadyUpdated

error AlreadyUpdated();

EnforcedPause

error EnforcedPause();

ExpectedPause

error ExpectedPause();

InvalidInitialization

error InvalidInitialization();

NotInitializing

error NotInitializing();

ProxyDeniedAdminAccess

error ProxyDeniedAdminAccess();
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

AccessControlBadConfirmation

error AccessControlBadConfirmation();

InvalidUniswapPool

error InvalidUniswapPool();

InvalidZeroLiquidityRegionSwap

error InvalidZeroLiquidityRegionSwap();

CallbackOnlyCallableByPool

error CallbackOnlyCallableByPool(address unauthorizedCaller);

OutputAmountNotReceived

error OutputAmountNotReceived(uint256 amountReceived, uint256 amountRequired);

๐Ÿ’ป
Git Source