DeFi Saver
Search…
UniswapSupply
Action that supplies liquidity to a Uniswap pool. This is a standard DFS action.
User needs to approveDSProxy to pull both of the underlying tokens.

Parameters:

  • address tokenA - The contract address of the first used token.
  • address tokenB - The contract address of the second used token.
  • address to - Address to which the underlying tokens are being transferred.
  • address from - Address from which the LP tokens are being pulled from.
  • uint256 amountADesired - The amount of tokenA to add as liquidity if the B/A price is <= amountBDesired/amountADesired (A depreciates).
  • uint256 amountBDesired - The amount of tokenB to add as liquidity if the A/B price is <= amountADesired/amountBDesired (B depreciates).
  • uint256 amountAMin - Bounds the extent to which the B/A price can go up before the transaction reverts. Must be <= amountADesired.
  • uint256 amountBMin - Bounds the extent to which the A/B price can go up before the transaction reverts. Must be <= amountBDesired.
  • uint256 deadline - Unix timestamp after which the transaction will revert.
Last modified 8mo ago
Copy link