IChecks

Functions

checkSqrtPrice

Function to check if the price of a pool is within specified bounds.

function checkSqrtPrice(IMaverickV2Pool pool, uint256 minSqrtPrice, uint256 maxSqrtPrice) external view;

Parameters

NameTypeDescription

pool

IMaverickV2Pool

The MaverickV2Pool contract to check.

minSqrtPrice

uint256

The minimum acceptable square root price.

maxSqrtPrice

uint256

The maximum acceptable square root price.

checkDeadline

Function to check if a given deadline has passed.

function checkDeadline(uint256 deadline) external view;

Parameters

NameTypeDescription

deadline

uint256

The timestamp representing the deadline.

Errors

PositionExceededPriceBounds

error PositionExceededPriceBounds(uint256 sqrtPrice, uint256 minSqrtPrice, uint256 maxSqrtPrice);

PositionDeadlinePassed

error PositionDeadlinePassed(uint256 deadline, uint256 blockTimestamp);

Last updated