Inherits: IMaverickV2BoostedPosition, BoostedPositionBase

BoostedPosition for movement-mode Maverick V2 AMM liquidity positions. This contract inherits ERC20 and a given user's BP balance represents their pro rata position in the boosted position.

Movement-mode bins can be merged in the V2 AMM. Before any action can be taken on this BP, the user must ensure that the underlying AMM bin has not been merged. If it has been merged, the user must first call migrateBinLiquidityToRoot.

State Variables


uint32 private binId;


uint256 private immutable tokenAScale;


uint256 private immutable tokenBScale;



Constructor does not do any validation of input paramters. This contract is meant to be deployed by a deployer contract and that contract does all of the paramter validations.

    string memory name_,
    string memory symbol_,
    IMaverickV2Pool pool_,
    uint8 kind_,
    uint32 binId_,
    uint256 tokenAScale_,
    uint256 tokenBScale_
) BoostedPositionBase(name_, symbol_, pool_, kind_, 1);


Checks to ensure bin is not merged.

modifier checkBinIsRoot();


Mints BP LP position to recipient. User has to add liquidity to BP contract before making this call as this mint function simply assigns any new liquidity that this BP possesses in the pool to the recipient. Accordingly, this function should only be called in the same transaction where liquidity has been added to a pool as part of a multicall or through a router/manager contract.

function mint(address recipient) public checkBinIsRoot returns (uint256 deltaSupply);


Burns BP LP positions and redeems the underlying A/B token to the recipient.

function burn(address recipient, uint256 amount) public returns (uint256 tokenAOut, uint256 tokenBOut);


Migrates all underlying movement-mode liquidity from a merged bin to the active parent of the merged bin. For Static BPs, this function is a no-op and never needs to be called.

function migrateBinLiquidityToRoot() public;


Array of relative pool bin LP balance of the bins in the BP.

function getRatios() public pure returns (uint128[] memory ratios_);


Array of BP binIds.

function getBinIds() public view checkBinIsRoot returns (uint32[] memory binIds_);


Array of ticks where the underlying BP liquidity exists.

function getTicks() public view checkBinIsRoot returns (int32[] memory ticks);


function maverickV2AddLiquidityCallback(IERC20 tokenA, IERC20 tokenB, uint256 amountA, uint256 amountB, bytes calldata)

Last updated