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 also calls internally the _addLiquidity that calls internally the _increaseLiquidity method of the INonfungiblePositionManagerto add liquidity to the NFT setup.

Last updated