Skip to main content

Swap and stake RADAR

Context

RADAR is a token issued by DappRadar. For this case, we created a multi-step interaction that enabled to swap MATIC tokens for RADAR on Uniswap. And stake the obtained RADAR tokens. In this example, we interact with smart contracts and assets on Mumbai testnet.

Interaction Implementation

The interaction has two steps and many parameters:

Step 1:

  • call the exactInput method of Uniswap v3 router contract on Mumbai
  • Wrapped ETH is automatically set as tokenA
  • set RADAR token as tokenB

Step 2:

  • call the stake method of DappRadar staking contract
  • set token as RADAR and set amount

Swap and stake radar