-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Curve V2 Sim #96
Comments
I tried to simulate two V2 pools, not knowing they were not yet supported. Thought I'd contribute my findings. TLDR: my specific errors result from the large difference between simulated Stableswap prices and actual (volatile) prices where the peg is not 1:1. Both pools were basic two-token ones, crv-eth (symbol "crvCRVETH") and cvx-eth (symbol "crvCVXETH") on mainnet, using the following code:
No parameters were overridden or added. The output, which I've truncated, looked like the below (this is the cvx-eth pool)
Naturally, the simulated pool is behaving as if both tokens were stablecoins under Stableswap (pool price close to 1), since only V1 pools are supported at the moment. The specific error is a
The |
Thanks @PhilipLu97, that sounds about right. The arbitrage pipeline should work once we make sim_interfaces for v2, which will provide the error_functions, etc. Once we merge the new metrics/plotter, we will also need add entries to compute the metrics for v2 pools. @chanhosuh -- So we don't forget, we also need to make bonding_curve and order_book support v2 |
Epic finished with the release of 0.5.0.b1, although we will of course wrap up the data provider issues etc. |
SimCurveCryptoPool
class (Stub implementation of the SimCurveCryptoPool #180)price
#178get_input_amount
#179prepare_for_trades
,assets
Grid
class should be refactored with mixins to extend current functionality to cryptopools (Update param samplers #158)vol_mult
param inautosim
no longer works as expected #168, Plotting fails when no variable params #169PoolBalance
needs to incorporate price,PoolValue
needs to use xcp(D)Update relevant network modules(we have the subgraph module updated and metadata is used to instantiate the cryptopool)The text was updated successfully, but these errors were encountered: