Manage Positions

Because positions deposited to the Compoundor contract are owned by the contract, there are some slight changes how positions are managed. But all functions from the Uniswap V3 NonfungiblePositionManager are available.

increaseLiquidity()

Can be called directly on the NonfungiblePositionManager contract because it doesn't check for ownership of the token.

collect()

Collects accumulated fees and transfers them to a specified recipient. This just forwards the call to the NonfungiblePositionManager.

msg.sender must be the owner of the NFT.

decreaseLiquidityAndCollect()

Decreases liquidity and executes a collect call in the same transaction. This is necessary because if only decreaseLiquidity would be called, the amounts would be temporarily available to be auto-compounded. Funds are transferred to a specified recipient.

msg.sender must be the owner of the NFT.

Last updated