Skip to content

Commit

Permalink
πŸ‘·πŸ» Use pool to get tick in post op
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Jul 10, 2024
1 parent 61a4251 commit f921e79
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/MarginPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f921e79

Please sign in to comment.