IMaverickV2LiquidityManager
Last updated
Last updated
Inherits: , , ,
Maverick V2 NFT position contract that tracks NFT-based liquditiy positions.
Maverick V2 BP factory contract.
Create Maverick V2 pool. Function is a pass through to the pool factory and is provided here so that is can be assembled as part of a multicall transaction.
Create Maverick V2 pool with two-way fees. Function is a pass through to the pool factory and is provided here so that is can be assembled as part of a multicall transaction.
Add Liquidity to a Maverick V2 pool. Function is a pass through to the pool and is provided here so that is can be assembled as part of a multicall transaction. Users can add liquidity to the Position NFT contract or a BP as part of a multicall in order to mint NFT/BP positions.
Liquidity is specified as bytes that represent a lookup table of add parameters. This allows an adder to specify what liquidity amounts they wish to add conditional on the price of the pool when their transaction is executed. With this, users have fine-grain control of how price slippage affects the amount of liquidity they add. The MaverickV2PoolLens contract has helper view functions that can be used to easily create a combination of price breaks and packed arguments.
Add Liquidity position NFT for msg.sender by specifying msg.sender's token index.
Token index is different from tokenId. On the Position NFT contract a user can own multiple NFT tokenIds and these are indexes by an enumeration index which is the index
input here. See addLiquidity for a description of the add params.
Add Liquidity position NFT for msg.sender by specifying recipient's token index.
Token index is different from tokenId. On the Position NFT contract a user can own multiple NFT tokenIds and these are indexes by an enumeration index which is the index
input here. See addLiquidity for a description of the add params.
Pass through function to the BP bin migration.
Mint new tokenId in the Position NFT contract. Both mints an NFT and adds liquidity to the pool that is held by the NFT.
Caller must approve this LiquidityManager contract to spend the caller's token A/B in order to fund the liquidity position. See addLiquidity for a description of the add params.
Mint new tokenId in the Position NFt contract to msg.sender. Both mints an NFT and adds liquidity to the pool that is held by the NFT.
Mint BP LP tokens to recipient. This function does not add liquidity to the BP and is only useful in conjuction with addLiquidity as part of a multcall.
Donates liqudity to a pool that is held by the position contract and will never be retrievable. Can be used to start a pool and ensure there will always be a base level of liquditiy in the pool.
Creates a pool at a specified price and mints a Position NFT with liquidity to the recipient.
A Maverick V2 pool has no native was to specify a starting price, only a starting activeTick
. The initial pool price will be the left edge of the initial activeTick. In order to create a pool at a fixed price, this function dontes a small amount of liquidity to the pool, does a swap to the specified price, and then adds liquidity for the user.
Creates a pool at a specified price and mints a Position NFT with liquidity to msg.sender.
Executes the multi-step process of minting BP LP positions by adding liqudiity to a pool in the BP liquidity distribution and then minting the BP to recipient.
Caller will need to approve this LiquidityManager contract to spend their token A/B in order to execute this function.
Executes the multi-step process of minting BP LP positions by adding liquidity to a pool in the BP liquidity distribution and then minting the BP to msg.sender.
Caller will need to approve this LiquidityManager contract to spend their token A/B in order to execute this function.
Deploy new BP contract from the BP factory and mint BP LP tokens to the recipient.
Caller will need to approve this LiquidityManager contract to spend their token A/B in order to execute this function.
Deploy new BP contract from the BP factory and mint BP LP tokens to msg.sender.
Caller will need to approve this LiquidityManager contract to spend their token A/B in order to execute this function.
Remove liquidity from a Position NFT and send proceeds to msg.sender. This function will unwrap WETH to ETH before sending to user. A user can also remove liquidity using the Position contract if they do not need to unwrap WETH.
Caller will need to approve this LiquidityManager contract to access the caller's tokenId NFT.
Burn a BP and send proceeds to msg.sender. This function will unwrap WETH to ETH before sending to user. A user can also burn their LP tokens using the BP contract if they do not need to unwrap WETH.
Caller will need to approve this LiquidityManager contract to access the caller's BP balance.