Skip to main content

Add Liquidity on Sushi

Context

Sushi is one of the leading DEXes. Liquidity providers need to add liquidity to a chosen DEX pool. They need to interact with the Sushi router smart contract, wrapped Ether and DAI tokens.

Interaction Implementation

The interaction has two steps: Approval and AddLiquidity. Developers need to:

  • call the addLiquidityETH method of Sushi v2 router contract
  • WETH is automatically set as a pair token for this method
  • set DAI as tokenB
  • the approval step, that authorizes WETH token spending will be automatically created by OKcontract

AddLiquidity Sushi