Natrium docs
  • ๐ŸงชOverview
    • ๐Ÿ“–Introducing Natrium
    • ๐Ÿ”ฎVision
  • โš™๏ธProtocol Overview
    • ๐ŸŒProtocol architecture
      • โšœ๏ธNatrium Core & Enterprise
    • ๐ŸŒŠLiquidations
    • ๐Ÿ“ˆInterest Rate Models
    • โšกOracles
    • โš–๏ธProtocol Fees
  • ๐Ÿ’ฐTokenomics
    • ๐Ÿš€Presale & Launch
    • ๐ŸงฌNTM & NaCl
  • โš’๏ธDev Docs
    • ๐Ÿ”‘Contract specs
      • Isolated Pools (Layer 1)
        • Bucket config
        • Supply underlying asset
        • Withdraw underlying asset
        • Deposit OverCollateralized asset
        • Borrow
        • Repay
        • Withdraw OverCollaterlized asset
        • Liquidate
      • Shufflers (Layer 2)
        • Contract functionalities
          • Shuffler Creation
          • Shuffler Management
          • Supply Cap Management
          • Risk Exposure Management
      • Error Library
        • Error lib
  • ๐Ÿ“šLibrary
    • Brand Assets
    • Community Links
    • Legal Disclaimer
Powered by GitBook
On this page
  1. โš’๏ธDev Docs
  2. ๐Ÿ”‘Contract specs
  3. Error Library

Error lib

Error Handling :

PreviousError LibraryNextBrand Assets

Last updated 1 year ago

CtrlK
  1. NOT_OWNER: Thrown when the caller is not the owner.

  2. MAX_LLTV_EXCEEDED: Thrown when the Liquidation Loan-To-Value (LLTV) to enable exceeds the maximum LLTV.

  3. MAX_FEE_EXCEEDED: Thrown when the fee to set exceeds the maximum fee.

  4. ALREADY_SET: Thrown when the value is already set.

  5. IRM_NOT_ENABLED: Thrown when the Interest Rate Model (IRM) is not enabled at market creation.

  6. LLTV_NOT_ENABLED: Thrown when the LLTV is not enabled at market creation.

  7. MARKET_ALREADY_CREATED: Thrown when the market is already created.

  8. MARKET_NOT_CREATED: Thrown when the market is not created.

  9. INCONSISTENT_INPUT: Thrown when not exactly one of the input amount is zero.

  10. ZERO_ASSETS: Thrown when zero assets are passed as input.

  11. ZERO_ADDRESS: Thrown when a zero address is passed as input.

  12. UNAUTHORIZED: Thrown when the caller is not authorized to conduct an action.

  13. INSUFFICIENT_COLLATERAL: Thrown when the collateral is insufficient for certain actions.

  14. INSUFFICIENT_LIQUIDITY: Thrown when the liquidity is insufficient for certain actions.

  15. HEALTHY_POSITION: Thrown when the position to liquidate is healthy.

  16. INVALID_SIGNATURE: Thrown when the authorization signature is invalid.

  17. SIGNATURE_EXPIRED: Thrown when the authorization signature is expired.

  18. INVALID_NONCE: Thrown when the nonce is invalid.

  19. TRANSFER_REVERTED: Thrown when a token transfer reverted.

  20. TRANSFER_RETURNED_FALSE: Thrown when a token transfer returned false.

  21. TRANSFER_FROM_REVERTED: Thrown when a token transferFrom reverted.

  22. TRANSFER_FROM_RETURNED_FALSE: Thrown when a token transferFrom returned false.

  23. MAX_UINT128_EXCEEDED: Thrown when the maximum uint128 is exceeded.