-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nit: move the max liquidity invariant to the pool since it's a pool p… (
#65) * move the oracle into a hook, remove time based stuff from pool manager fixes #53 * partially complete implementation of the v3 oracle hook * partially complete implementation of the v3 oracle hook * rename, plus some documentation, plus the idea about forcing the geomean oracle to be a single pool with locked liquidity * working on unit tests * finish merge * get the test to pass! * add a mock time geomean oracle * some #afterInitialize tests * add an #afterInitialize tests, limit max tick spacing * more beforeSwap tests * use the MAX_TICK_SPACING on the pool manager, add to interface * inheritdoc * afterModifyPosition tests * remove unused variables * nit: move the max liquidity invariant to the pool since it's a pool property and not a tick property * fix redundant sloads * can skip tick liquidity checks on burns * force max range liquidity in the oracle * add gas tests * use a cheaper formula to compute the max liquidity per tick since we call it more often * add tests for the invariant that the new formula for tickSpacingToMaxLiquidityPerTick relies on * add a comment
- Loading branch information
1 parent
b6dc896
commit 28d95ce
Showing
12 changed files
with
153 additions
and
98 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
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.