increase_liquidity

Documentation for eth_defi.uniswap_v3.deployment.increase_liquidity function.

increase_liquidity(web3, position_owner, position_id, deployment, amount0, amount1, amount0_min=0, amount1_min=0)[source]

Increase liquidity in an existing Uniswap V3 position. See Uniswap V3 documentation for details.

Parameters
  • web3 (web3.main.Web3) – Web3 instance

  • position_owner (eth_typing.evm.HexAddress) – The address of the position_owner.

  • position_id (int) – The id of the position to be increased, should be a positive integer.

  • deployment (eth_defi.uniswap_v3.deployment.UniswapV3Deployment) – Uniswap v3 deployment

  • amount0 (int) – Amount of token0 to be added

  • amount1 (int) – Amount of token1 to be added

  • amount0_min (int) – min amount0 desired, this is used as slippage check

  • amount1_min (int) – min amount1 desired, this is used as slippage check

Returns

tx_receipt: Transaction receipt of the increaseLiquidity transaction

Return type

dict