Closed dpaiton closed 11 months ago
I don't know that I'd expect this to be true. As mentioned on some of the other issues, the share reserves isn't necessarily path independent (even though the effective share reserves is). Also, if we have fees turned on, that would definitely break this.
Ok, we will not check vault shares and instead check effective share reserves
Crash Report
https://app.rollbar.com/a/delv/fix/item/FirstProject/37
Description
Test: fuzz_hyperdrive_balance.py
Expected Behavior
We expect the vault shares to be invariant if all open trades are subsequently closed.
Actual Behavior
We are seeing varying differences (a histogram of the differences is below):
Steps to Reproduce
Run the fuzz test.
Screenshots or Error Messages
Logs or Stack Traces
fuzz_hyperdrive_balance2023_12_12_18_34_47_Z.json