Tutorials:Swap Autumn for Summer Tokens in Uniswap

From Seasonal Tokens
Revision as of 16:27, 17 January 2025 by BeginnersGuide>Marin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Swap Autumn for Summer Tokens in Uniswap

Let's swap back our 143 Autumn tokens for Summer tokens using Uniswap:

Swap4.jpg

We have to give permissions to Uniswap to use our tokens, sign the transaction and confirm the swap:

Swap6.jpg

And review the transaction in Polygonscan:

UniSwap Transaction

SwapUniswapAutumnSummer.jpg


Task:

Copy the Uniswap Universal Router contract address.

Exercise:

Let's break down the transactions to see what is happening.

  1. 0xFOE sent 143 Autumn to 0x3A18 (Autumn Liquidity Pool)
  2. 0x3A18 sent 1.022 Wrapped Matic to Universal Router
  3. Universal Router sent 1.022 Wrapped Matic to 0x0cf (Summer Liquidity Pool)
  4. 0x0cf sent 143.011 Summer to Universal Router
  5. Universal Router sent 142.653 Summer to 0xFOE
  6. Universal Router sent 0.3575 Summer to 0x23b (Uniswap Fee Collector)


Notice

  • The Uniswap fee is paid in Summer to the Fee collector contract