Aller au contenu principal

Overview

Library containing all custom errors detailing cases where the Intuition core protocol may revert.

Author: 0xIntuition

EthMultiVault Errors

Authentication & Access

  • MultiVault_AdminOnly()
    • Only the admin is authorized to perform this operation
  • MultiVault_OnlyOwner()
    • Only the owner is authorized for this operation
  • MultiVault_SenderNotApproved()
    • The sender is not approved
  • MultiVault_SenderAlreadyApproved()
    • The sender is already approved
  • MultiVault_CannotApproveSelf()
    • Cannot approve oneself
  • MultiVault_CannotRevokeSelf()
    • Cannot revoke oneself

Asset Operations

  • MultiVault_InsufficientBalance()
    • Insufficient balance for the operation
  • MultiVault_BurnInsufficientBalance()
    • Insufficient balance for burn operation
  • MultiVault_BurnFromZeroAddress()
    • Cannot burn from the zero address
  • MultiVault_DepositOrWithdrawZeroShares()
    • Cannot deposit or withdraw zero shares
  • MultiVault_MinimumDeposit()
    • The deposit is below the minimum required amount
  • MultiVault_InsufficientDepositAmountToCoverFees()
    • The deposit amount is insufficient to cover the fees

Vault Operations

  • MultiVault_VaultDoesNotExist()
    • The specified vault does not exist
  • MultiVault_InsufficientSharesInVault()
    • Insufficient shares in vault
  • MultiVault_InsufficientRemainingSharesInVault(uint256 remainingShares)
    • Insufficient remaining shares in the vault
  • MultiVault_HasCounterStake()
    • There is a counter stake present

Atom & Triple Management

  • MultiVault_AtomDoesNotExist(uint256 atomId)
    • The specified atom does not exist
  • MultiVault_AtomExists(bytes atomUri)
    • The atom already exists
  • MultiVault_AtomUriTooLong()
    • The atomURI data to create an atom is too long
  • MultiVault_VaultIsTriple(uint256 vaultId)
    • The specified vault is a triple
  • MultiVault_VaultNotAtom()
    • The specified vault is not an atom
  • MultiVault_VaultNotTriple()
    • The specified vault is not a triple
  • MultiVault_TripleExists(uint256 subjectId, uint256 predicateId, uint256 objectId)
    • The triple already exists

Fee Management

  • MultiVault_InvalidEntryFee()
    • The entry fee is invalid
  • MultiVault_InvalidExitFee()
    • The exit fee is invalid
  • MultiVault_InvalidProtocolFee()
    • The protocol fee is invalid
  • MultiVault_InvalidAtomDepositFractionForTriple()
    • The deposit fraction for an atom in a triple is invalid

Technical Operations

  • MultiVault_ArraysNotSameLength()
    • Arrays provided are not of the same length
  • MultiVault_DeployAccountFailed()
    • Atom wallet deployment failed
  • MultiVault_TransferFailed()
    • Transfer operation failed
  • MultiVault_ReceiveNotAllowed()
    • Receive function should not be called

Timelock Operations

  • MultiVault_OperationAlreadyScheduled()
    • Timelock operation already scheduled
  • MultiVault_OperationAlreadyExecuted()
    • Timelock operation already executed
  • MultiVault_OperationNotScheduled()
    • Timelock operation not scheduled
  • MultiVault_TimelockNotExpired()
    • Timelock not expired

AtomWallet Errors

Authentication & Access

  • AtomWallet_OnlyOwner()
    • Only the owner is authorized for this operation
  • AtomWallet_OnlyOwnerOrEntryPoint()
    • Only the owner or the entry point is authorized for this action

Signature Validation

  • AtomWallet_InvalidSignature()
    • The signature is invalid
  • AtomWallet_InvalidSignatureLength(uint256 length)
    • The signature length is invalid
  • AtomWallet_InvalidSignatureS(bytes32 s)
    • The signature 's' value is invalid

Technical Operations

  • AtomWallet_InvalidCallDataLength()
    • The call data length is invalid
  • AtomWallet_WrongArrayLengths()
    • The array lengths do not match

CustomMulticall3 Errors

Value & Length Validation

  • CustomMulticall3_InsufficientValue()
    • The value provided is insufficient
  • CustomMulticall3_InvalidValue()
    • The value provided is invalid
  • CustomMulticall3_InvalidValuesLength()
    • The length of values is invalid
  • CustomMulticall3_InvalidAtomIdsLength()
    • The length of atom IDs is invalid
  • CustomMulticall3_InvalidAtomUrisLength()
    • The length of atom URIs is invalid