add_liquidity

Documentation for eth_defi.uniswap_v3.deployment.add_liquidity function.

add_liquidity(web3, deployer, *, deployment, pool, amount0, amount1, lower_tick, upper_tick)[source]

Add liquidity to a pool.

See Uniswap V3 documentation for details.

Parameters
Returns

  • tx_receipt: Transaction receipt of the mint transaction

  • lower_tick: Corrected lower tick of the position with correct tick spacing

  • upper_tick: Corrected upper tick of the position with correct tick spacing

Return type

tuple[dict, int, int]