Add Liquidity

More liquidity can be added to an open position through the addLiquidity function. This function requires, as input:

function addLiquidity(uint256 positionId, FarmingPositionRequest memory request) public override payable activeSetupOnly(request.setupIndex) byPositionOwner(positionId)
  • positionId -> id of the corresponding farming position

  • FarmingPositionRequest struct

Like the openPosition function, the addLiquidity function internally calls the _addLiquidity method (passing the already created NFT id of the position), which internally calls the _increaseLiquidity method of the INonfungiblePositionManager to add liquidity to the NFT.

Last updated