-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a price discovery circuit breaker on
addLiquidity
and `…
…initialize` (#1067) * Implemented a basic version of the `addLiquidity` circuit breaker * Fixed `test_lp_withdrawal_long_and_short_maturity` * Fixed the remaining tests * add priceDiscoveryCheck to LPMath and also check it in initialize * use initial price * add tests and fix placement of check * remove lib from LPMath * remove comment * remove console import * remove console import * fix price discovery tests * fixed tests * commit test to investigate * add test_solvency_at_0_apr * add test_solvency_cross_checkpoint_long_short * address review feedback * Update test/integrations/hyperdrive/PriceDiscovery.t.sol * Added some testing examples * Minor updates * Updated `verifyPriceDiscovery` to `calculateSolvencyAfterMaxLong` * Cleaned up the tests * Increased the efficiency of the solvency check * Fixed the code size issue * Addressed Saw Mon's comment * Improved one of the price discovery tests * Updated the price discovery tests * Fixed the remaining tests * Addressed review feedback from @mcclurejt * Fixed the deployment scripts --------- Co-authored-by: jonny rhea <jonathan.rhea@gmail.com> Co-authored-by: Jonny Rhea <5555162+jrhea@users.noreply.github.com>
- Loading branch information
1 parent
5154a7a
commit d838493
Showing
12 changed files
with
1,101 additions
and
89 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
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
Oops, something went wrong.