Skip to content

Commit ad274f5

Browse files
committed
Force relayer to pass in position's ticks as input
1 parent d8dbd1e commit ad274f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libraries/UniswapV3Lib.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ library UniswapV3Lib {
307307

308308
require(pool.token0() == token0 && pool.token1() == token1 && pool.fee() == fee, "UniswapV3Lib/invalid-pool");
309309

310+
require(tickLower == params.tick.lower && tickUpper == params.tick.upper, "UniswapV3Lib/invalid-input-ticks");
311+
310312
// Check that existing position's bounds are still within governance set range
311313
require(tickLower >= params.tickBounds.lower, "UniswapV3Lib/lower-tick-outside-bounds");
312314
require(tickUpper <= params.tickBounds.upper, "UniswapV3Lib/upper-tick-outside-bounds");

0 commit comments

Comments
 (0)