Skip to content

Commit

Permalink
fuzz for max tick spacing 30, inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepoint committed Jan 24, 2025
1 parent 555118d commit 2d5834c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/UniswapV4Initializer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ contract UniswapV4InitializerTest is Test, Deployers {

function test_fuzz_v4initialize_fee_tickSpacing(uint24 fee, int24 tickSpacing) public {
fee = uint24(bound(fee, 0, 1_000_000)); // 0.00% to 100%
tickSpacing = int24(bound(tickSpacing, 1, MAX_TICK_SPACING - 1));
tickSpacing = int24(bound(tickSpacing, 1, MAX_TICK_SPACING));
int24 gamma = (DEFAULT_GAMMA / tickSpacing) * tickSpacing; // align gamma with tickSpacing, rounding down

DopplerConfig memory config = DopplerConfig({
Expand Down

0 comments on commit 2d5834c

Please sign in to comment.