BoostedPositionBase

Inherits: ERC20, Multicall, Checks, IBoostedPositionBase

Base BP contract functions.

State Variables

pool

BP Pool.

IMaverickV2Pool public immutable pool;

kind

BP Bin kind (static, right, left, both).

uint8 public immutable kind;

binCount

Number of bins in the BP.

uint8 public immutable binCount;

binBalances

Liquidity balance in given BP bin since last mint/burn operation.

uint128[] public binBalances;

SUBACCOUNT

uint256 internal constant SUBACCOUNT = 0;

Functions

constructor

constructor(string memory name_, string memory symbol_, IMaverickV2Pool pool_, uint8 kind_, uint8 binCount_)
    ERC20(name_, symbol_);

getBinBalances

Liquidity balance in BP bins since last mint/burn operation.

function getBinBalances() public view returns (uint128[] memory binBalances_);

_removeLiquidityAndUpdateBalances

function _removeLiquidityAndUpdateBalances(
    uint256 amount,
    address recipient,
    uint32[] memory binIds_,
    uint128[] memory ratios_
) internal returns (uint256 tokenAOut, uint256 tokenBOut);

_checkAndUpdateBinBalances

function _checkAndUpdateBinBalances(uint32[] memory binIds_, uint128[] memory ratios_)
    internal
    returns (uint128 deltaSupply);

Last updated