delvtech / agent0

Analysis & simulation repo for Delv
https://agent0.readthedocs.io/en/latest/
Apache License 2.0
52 stars 21 forks source link

make a test for `build_wallet_positions.py` #1408

Closed dpaiton closed 5 months ago

dpaiton commented 7 months ago

1407 revealed a bug in how we build up the wallet from on-chain trades. We should be able to build a test for this that verifies wallet construction from each of the possible wallet quantities.

slundqui commented 5 months ago

Comparison of this wallet correctness against the db and chain was audited and implemented in https://github.com/delvtech/agent0/pull/1467