-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
TestUpOnlyLiquidity
stateful testing
* implemented new stateful test that also continuously deposits balanced liquidity in the pool (this didn't happen in the previous version of stateful tests) * addresses are now generated using boa's search strategy instead of using `boa.env.generate_address()` this will be greatly beneficial when vyperlang/titanoboa#208 will be implemented. * search strategy to generate factories now makes sure the addresses of `fee_receiver`, `owner` and `deployer` are different. * `exchange_rule` now can only swap up to 60% of the pool liqudity since 85% would often break `newton_y` (and it seems like a reasonably unlikely to happen situtation). * `StatefulBase` now tracks depositors with a set instead of a list to avoid having duplicates addresses when someone deposits multiple times. * removed `sleep` invariant since this is already implemented as the `time_forward` rule (using `sleep` as name was leading to unexpected behavior because of python module with the same name). * more comments on what has been done so far.
- Loading branch information
1 parent
978590e
commit b24b71c
Showing
3 changed files
with
76 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters