Skip to content

Helpers ​

normalSlot ​

solidity
function normalSlot(uint256 slot_) public pure returns (bytes32)

calculateStorageSlotUintMapping ​

solidity
function calculateStorageSlotUintMapping(uint256 slot_, uint256 key_) public pure returns (bytes32)

Calculating the slot ID for Liquidity contract for single mapping

calculateStorageSlotIntMapping ​

solidity
function calculateStorageSlotIntMapping(uint256 slot_, int256 key_) public pure returns (bytes32)

Calculating the slot ID for Liquidity contract for single mapping

calculateDoubleIntUintMapping ​

solidity
function calculateDoubleIntUintMapping(uint256 slot_, int256 key1_, uint256 key2_) public pure returns (bytes32)

Calculating the slot ID for Liquidity contract for double mapping

tickHelper ​

solidity
function tickHelper(uint256 tickRaw_) public pure returns (int256 tick)

constructor ​

solidity
constructor(address factory_, address liquidityResolver_) public