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 interacts with theINonfungiblePositionManager to add liquidity to the position NFT.

Last updated