infrastructure-upgrade/lib/v3-periphery/contracts/test/TickLensTest.sol
T-Hax 735546619e
init
Signed-off-by: T-Hax <>
2023-04-08 18:46:18 +00:00

16 lines
517 B
Solidity

// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;
pragma abicoder v2;
import '@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '../lens/TickLens.sol';
/// @title Tick Lens contract
contract TickLensTest is TickLens {
function getGasCostOfGetPopulatedTicksInWord(address pool, int16 tickBitmapIndex) external view returns (uint256) {
uint256 gasBefore = gasleft();
getPopulatedTicksInWord(pool, tickBitmapIndex);
return gasBefore - gasleft();
}
}