IMaverickV2BoostedPositionFactory

Functions

createBoostedPosition

Creates BP from the specified input parameters. Requirements:

  • Pool must be from pool factory

  • BP kind must be supported by the pool

  • BinIds have to be sorted in ascending order

  • ratios[0] must be 1e18; ratios are specified in D18 scale

  • ratio and binId arrays have to be the same length

  • movement-mode BPs can only have one binId

  • static-mode BPs can have at most 24 binIds

function createBoostedPosition(IMaverickV2Pool pool, uint32[] memory binIds, uint128[] memory ratios, uint8 kind)
    external
    returns (IMaverickV2BoostedPosition boostedPosition);

lookup

Look up BPs by range of indexes.

function lookup(uint256 startIndex, uint256 endIndex) external view returns (IMaverickV2BoostedPosition[] memory);

lookup

Look up BPs by range of indexes for a given pool.

isFactoryBoostedPosition

Returns whether or not input BP was created by this factory.

poolFactory

Pool factory that all BPs pool must be deployed from.

Events

CreateBoostedPosition

Errors

BoostedPositionFactoryNotFactoryPool

BoostedPositionFactoryKindNotSupportedByPool

BoostedPositionFactoryInvalidRatioZero

BoostedPositionFactoryInvalidLengths

BoostedPositionFactoryInvalidLengthForKind

BoostedPositionFactoryInvalidBinIdOrder

BoostedPositionFactoryInvalidBinKind

Last updated