Charm Finance
  • Charm Overview
    • The mission
  • Products Overview
    • Alpha Vaults
      • Whitepaper
      • FAQ
    • Charm Simulator
  • Provide Liquidity
    • Overview
    • The Benefits
    • Risks and Mitigants
    • Charm Vaults
    • Community Vaults
    • Conclusion
    • Fees
    • FAQ
    • User Guides
      • Home Page
      • Depositing and Withdrawing
      • Vault Information Page
      • Performance Page
      • Portfolio Page
  • Manage Liquidity
    • Overview
    • The Benefits
    • Challenges and Solution
    • Uses Cases
    • How it works
    • Risks and mitigants
    • Conclusion
    • Fees
    • FAQ
    • User Guides
      • Create Vault
        • Default Values
        • Next Steps
      • Vault Parameters
      • Rebalancing
      • Verifying Vaults
      • Capital Efficiency
      • Other Features
      • Best Practices
      • Walkthroughs
        • Create Vault
        • Edit Vault
        • Automating Rebalance
        • Verify Manager
  • Technical References
    • Overview
    • Core
      • AlphaProVault
      • AlphaProVaultFactory
      • CloneFactory
      • Interfaces
    • Periphery
    • Error Codes
    • Contract Addresses
    • Subgraph
  • Links
    • Alpha Vaults v2
    • Contracts
    • Blog
  • Appendix
    • Glossary
    • Audit Reports
    • Team
    • Charm's Investors
    • 中文版
  • Research
    • Medallion
      • Whitepaper
      • FAQ
      • Decentralised competition
  • Previous Products
    • Alpha Vaults v1
    • Charm Options
      • Key Features
        • Capital Efficiency
      • Use Cases
      • How trading works
      • How liquidity provision works
      • Trading Tutorials
        • Open a position
          • Notes
        • Close a position
        • Settlement
      • Liquidity Provision Tutorials
        • Provide liquidity
        • Withdraw Liquidity
    • Cube Tokens
      • How it works
Powered by GitBook
On this page
  • amount0Min or amount1Min
  • amount0Desired or amount1Desired
  • maxTotalSupply
  • PB
  • PE
  • pendingManager
  • rebalanceDelegate
  • shares
  • TM
  • to
  • token
  • TP
  1. Technical References

Error Codes

PreviousPeripheryNextContract Addresses

Last updated 8 months ago

amount0Min or amount1Min

When depositing, the amount of token0 or token1 deposited is less than the amount specified by amount0Min or amount1Min. Used as a slippage check.

When withdrawing, the amount of token0 or token1 withdrawn is less than the amount specified by amount0Min or amount1Min. Used as a slippage check.

amount0Desired or amount1Desired

The total amount of either token deposited into the vault is <0.

maxTotalSupply

Vault has exceeded its maximum cap.

PB

Market Price is too close to the maximum and minimum tick size on Uniswap V3

PE

Insufficient time has passed since the last rebalance. Error code will appear if the time is less than .

pendingManager

Only the address specified by the old vault manager can be new vault manager.

rebalanceDelegate

The vault can only be rebalanced by whitelisted addresses.

shares

Amount of vault shares minted or burned by the vault is less than 0.

TM

to

When depositing, vault shares cannot be sent to the zero address, or to the vault that minted the shares.

When withdrawing, the tokens withdrawn cannot be sent to the zero address, or to the vault that minted the shares.

token

Tokens that are managed by the vault cannot be swept out of the vault.

TP

The price has not moved enough since the last rebalance. Error code will appear is the time passed since last rebalance is less than

Price movement exceeds the maximum allowed TWAP deviation. Error code will appear if the price movement is more than

period
minTickMove
maxTwapDeviation