curveresearch / curvesim

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

Tricrypto `add_liquidity` implementation #215

Closed chanhosuh closed 1 year ago

chanhosuh commented 1 year ago

Currently CurveCryptoPool.add_liquidity 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.