# Checks

**Inherits:** [IChecks](/technical-reference/maverick-v2/v2-contracts/maverick-v2-supplemental-contracts/base/ichecks.md)

### Functions <a href="#functions" id="functions"></a>

#### checkSqrtPrice <a href="#checksqrtprice" id="checksqrtprice"></a>

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

```solidity
function checkSqrtPrice(IMaverickV2Pool pool, uint256 minSqrtPrice, uint256 maxSqrtPrice) public view;
```

**Parameters**

| Name           | Type              | Description                               |
| -------------- | ----------------- | ----------------------------------------- |
| `pool`         | `IMaverickV2Pool` | The MaverickV2Pool contract to check.     |
| `minSqrtPrice` | `uint256`         | The minimum acceptable square root price. |
| `maxSqrtPrice` | `uint256`         | The maximum acceptable square root price. |

#### checkDeadline <a href="#checkdeadline" id="checkdeadline"></a>

Function to check if a given deadline has passed.

```solidity
function checkDeadline(uint256 deadline) public view;
```

**Parameters**

| Name       | Type      | Description                              |
| ---------- | --------- | ---------------------------------------- |
| `deadline` | `uint256` | The timestamp representing the deadline. |

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mav.xyz/technical-reference/maverick-v2/v2-contracts/maverick-v2-supplemental-contracts/base/checks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
