Checks

Inherits: IChecks

Functions

checkSqrtPrice

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

function checkSqrtPrice(IMaverickV2Pool pool, uint256 minSqrtPrice, uint256 maxSqrtPrice) public 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) public view;

Parameters

NameTypeDescription

deadline

uint256

The timestamp representing the deadline.

Last updated