From f921e79ed1d4b9ab65d3c837a65dcdcc34e5bc07 Mon Sep 17 00:00:00 2001 From: tommyrharper Date: Wed, 10 Jul 2024 19:32:04 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=F0=9F=8F=BB=20Use=20pool=20to=20ge?= =?UTF-8?q?t=20tick=20in=20post=20op?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MarginPaymaster.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/MarginPaymaster.sol b/src/MarginPaymaster.sol index 508c39a..013e5b8 100644 --- a/src/MarginPaymaster.sol +++ b/src/MarginPaymaster.sol @@ -65,9 +65,7 @@ contract MarginPaymaster is IPaymaster, Zap { ) external { if (msg.sender != entryPoint) revert InvalidEntryPoint(); - (, int24 tick, , , , , ) = IUniswapV3Pool( - 0xd0b53D9277642d899DF5C87A3966A349A798F224 - ).slot0(); + (, int24 tick, , , , , ) = pool.slot0(); uint256 costOfGasInUSDC = OracleLibrary.getQuoteAtTick( tick, // int24 tick