# MaverickV2VotingEscrowLens

**Inherits:** [IMaverickV2VotingEscrowLens](/technical-reference/maverick-v2/v2-contracts/maverick-v2-reward-contracts/interfaces/imaverickv2votingescrowlens.md)

Provides view functions for voting escrow information.

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

#### claimInformation <a href="#claiminformation" id="claiminformation"></a>

This function retrieves paginated claim information for a specific account and claim index range within a provided Maverick V2 Voting Escrow (veToken) contract.

```solidity
function claimInformation(IMaverickV2VotingEscrow ve, address account, uint256 startIndex, uint256 endIndex)
    public
    view
    returns (IMaverickV2VotingEscrow.ClaimInformation[] memory returnElements);
```

**Parameters**

| Name         | Type                      | Description                                                                                  |
| ------------ | ------------------------- | -------------------------------------------------------------------------------------------- |
| `ve`         | `IMaverickV2VotingEscrow` | The address of the IMaverickV2VotingEscrow contract for which to retrieve claim information. |
| `account`    | `address`                 | The address of the account for which to retrieve claim information.                          |
| `startIndex` | `uint256`                 | The starting index for the desired range of claims.                                          |
| `endIndex`   | `uint256`                 | The ending index for the desired range of claims.                                            |

**Returns**

| Name             | Type                                         | Description                                                                                                                                                 |
| ---------------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `returnElements` | `IMaverickV2VotingEscrow.ClaimInformation[]` | An array of `IMaverickV2VotingEscrow.ClaimInformation` structs containing details about claimable rewards for the specified account within the index range. |

#### syncInformation <a href="#syncinformation" id="syncinformation"></a>

This function retrieves paginated information on the lockup synchronization status for legacy ve mav.

```solidity
function syncInformation(IMaverickV2VotingEscrowWSync ve, address staker, uint256 startIndex, uint256 endIndex)
    public
    view
    returns (IMaverickV2VotingEscrow.Lockup[] memory legacyLockups, uint256[] memory syncedBalances);
```

**Parameters**

| Name         | Type                           | Description                                                            |
| ------------ | ------------------------------ | ---------------------------------------------------------------------- |
| `ve`         | `IMaverickV2VotingEscrowWSync` | The address of the ve contract for which to retrieve sync information. |
| `staker`     | `address`                      | The address of the user for whom to retrieve sync information.         |
| `startIndex` | `uint256`                      | The starting index for the desired range of legacy lockups.            |
| `endIndex`   | `uint256`                      | The ending index for the desired range of legacy lockups.              |

**Returns**

| Name             | Type                               | Description                                                                                                                     |
| ---------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `legacyLockups`  | `IMaverickV2VotingEscrow.Lockup[]` | An array of `IMaverickV2VotingEscrow.Lockup` structs containing details about the user's legacy lockups within the index range. |
| `syncedBalances` | `uint256[]`                        | An array of uint256 values representing the synced balances corresponding to the legacy lockups.                                |

#### getLockups <a href="#getlockups" id="getlockups"></a>

This function retrieves paginated lockup information for a specific account and lockup index range within a provided Maverick V2 Voting Escrow (veToken) contract.

```solidity
function getLockups(IMaverickV2VotingEscrow ve, address staker, uint256 startIndex, uint256 endIndex)
    public
    view
    returns (IMaverickV2VotingEscrow.Lockup[] memory returnElements);
```

**Parameters**

| Name         | Type                      | Description                                                                                   |
| ------------ | ------------------------- | --------------------------------------------------------------------------------------------- |
| `ve`         | `IMaverickV2VotingEscrow` | The address of the IMaverickV2VotingEscrow contract for which to retrieve lockup information. |
| `staker`     | `address`                 | The address of the account for which to retrieve lockup information.                          |
| `startIndex` | `uint256`                 | The starting index for the desired range of lockups.                                          |
| `endIndex`   | `uint256`                 | The ending index for the desired range of lockups.                                            |

**Returns**

| Name             | Type                               | Description                                                                                                                                 |
| ---------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `returnElements` | `IMaverickV2VotingEscrow.Lockup[]` | An array of `IMaverickV2VotingEscrow.Lockup` structs containing details about the lockups within the specified index range for the account. |

<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-reward-contracts/maverickv2votingescrowlens.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.
