curveresearch / curvesim

Simulates Curve Finance pools
MIT License
155 stars 32 forks source link

Tricrypto `calc_withdraw_one_coin` #217

Closed chanhosuh closed 1 year ago

chanhosuh commented 1 year ago

Currently CurveCryptoPool.calc_withdraw_one_coin does not handle 3 coins, only 2. Update the implementation in a clean manner to handle this. Similar test as for 2 coins should work. Reference implementation is the Tricrypto-NG vyper fixture.

Note: This blocks remove_liquidity_one_coin.