> For the complete documentation index, see [llms.txt](https://docs.mav.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mav.xyz/technical-reference/maverick-v2/v2-contracts/maverick-v2-supplemental-contracts/base/checks.md).

# 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>
