curveresearch / curvesim

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

Initialize pool values from vyper contract storage during tests #254

Open allt0ld opened 1 year ago

allt0ld commented 1 year ago

In test_tricrypto.initialize_pool, some variables such as A and gamma aren't loaded directly from the vyper_tricrypto fixture's storage. We call functions that may return values different from what's in the storage state (the packed variables).

Not a problem right now, but we should fix this if, for example, we do future tests involving ramping A or gamma.

Variables needing a fix: