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
  • Introduction
  • How to use Charm Simulator
  • Assumptions
  • Caveats
  • Conclusion
  1. Products Overview

Charm Simulator

A permissionless back-tester for LP strategies.

PreviousFAQNextOverview

Last updated 8 months ago

Introduction

There are no reliable, user-friendly simulators for Liquidity Provision (LP) strategies. As a result, liquidity providers cannot assess the effectiveness of an LP strategy, or determine whether a vault utilising such strategies will perform well.

is a permissionless and easy-to-use simulator to backtest the performance of an LP strategy. It works for any Uniswap v3 pool*, and any strategy supported by . Anyone can use Charm Simulator to test the performance of a vault before it is created.

*The first version of Charm Simulator will support Mainnet pools. L2 pools will be supported in future versions.

How to use Charm Simulator

  1. Click on , and select the pool to backtest:

  1. Select the dates to backtest:

  1. Click Run Backtest to run the simulator:

  1. Repeat steps 2 to 4 until the best performing LP strategy have been found.

  2. Click Create Vault to implement the strategy:

  1. Click Create Vault again to open up your browser wallet to create a vault:

  1. Follow the prompts in your browser wallet to create the vault.

  2. When the transaction confirms, a welcome screen will appear to confirm the vault was created:

  1. Click View Your Vault to see your vault — it’s now ready to accept deposits!

Congratulations! You just created a vault with your own custom LP strategy!

Assumptions

Charm Simulator uses the following assumptions:

  1. The protocol fee is set to 1% of Uniswap fees, and manager fee is set to 0%.

  2. The first deposit is always in a 50:50 ratio.

  3. There is only one depositor, and no withdrawals.

  4. All the vault’s liquidity is in a Uniswap V3 pool at all times.

Caveats

Charm Simulator offers a way to backtest an LP strategy using historical data. It should only be used for research purposes because:

  • It does not guarantee future performance, because it only uses historical data.

  • The actual performance also depend on the pattern of withdrawal and deposits, the manager fee, and what other liquidity managers do in response to an LP strategy.

  • The simulator uses the raw swaps data downloaded from Uniswap V3. They have not been pre-processed to filter out spurious swaps, or unusual liquidity patterns. These factors are more likely to affect smaller pools, and the simulator results for these pools may be less accurate.

Conclusion

Enter the strategy’s parameters using the tooltip as guidance. The docs contain .

Click to learn some of the things you can do with your vault.

You can now deposit into the vault, and to let the vault run by itself.

The strategy always rebalances at exactly the time determined by the .

It will not implement the strategy unless a vault is .

is a permissionless backtester for LP strategies. Anyone can use it to test an LP strategy, and then it for any Mainnet pool. Future versions of Charm Simulator will support L2 pools, and faster load time for all pools.

further guidance
Next Steps
automate rebalance
Rebalance Frequency
created
Charm Simulator
implement
Charm Simulator
Alpha Vaults
Backtest
Page cover image