mirror of
https://github.com/lux-amm/v3-periphery.git
synced 2026-10-30 20:55:54 +00:00
16 lines
516 B
Solidity
16 lines
516 B
Solidity
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
pragma solidity >=0.5.0;
|
|
pragma abicoder v2;
|
|
|
|
import '@luxamm/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();
|
|
}
|
|
}
|