curveresearch / curvesim

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

Mutation bugs in `metrics.state_log.pool_state` #273

Closed allt0ld closed 1 year ago

allt0ld commented 1 year ago

The functions in metrics.state_log.pool_state should copy() new references to pool objects like pool.balances to avoid mutation bugs.