# MigrateBins

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

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

#### migrateBinsUpStack <a href="#migratebinsupstack" id="migratebinsupstack"></a>

*Migrates bins up the stack in the pool.*

```solidity
function migrateBinsUpStack(IMaverickV2Pool pool, uint32[] memory binIds, uint32 maxRecursion) public payable;
```

**Parameters**

| Name           | Type              | Description                     |
| -------------- | ----------------- | ------------------------------- |
| `pool`         | `IMaverickV2Pool` | The MaverickV2Pool contract.    |
| `binIds`       | `uint32[]`        | An array of bin IDs to migrate. |
| `maxRecursion` | `uint32`          | The maximum recursion depth.    |

<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/migratebins.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.
