Tutorials:Swap Pol For Tokens: Difference between revisions

From Seasonal Tokens
Jump to navigation Jump to search
m (1 revision imported)
m (Move page script moved page Tutorials:3407 to Tutorials:Swap Pol For Tokens)
 
(No difference)

Latest revision as of 01:41, 4 November 2025

Swap POL for Tokens

In this quest we will use Uniswap to swap POL for tokens. As we have discussed before, Uniswap uses Liquidity Pools to facilitate the swapping of tokens, these Liquidity Pools are implemented as smart contracts that hold equivalent amounts of Tokens and Wrapped Matic (Now called wrapped POL). And so they are often called: Token Pair contracts.

We will swap Pol for Summer tokens and find the address of the Summer / POL liquidity Pool.

  • Connect Wallet

D1.jpg

  • Confirm the connection in Metamask

D2.jpg

  • After confirmation, select POL instead of ETH
  • Click on Select Token
  • Paste the Polygon Summer Token contract address:
0xdd28ec6b06983d01d37dbd9ab581d8d884d95264


You can find all token addresses here:

Seasonal Tokens Technical Data


D3.jpg

  • Confirm that it is the right token.
Note: Anybody can create a token smart contract and call it anything, the best practice is to use the token address instead of searching and clicking on a result, there may be many tokens with the same name. Be careful.

Now we proceed and swap 1 POL for Summer Tokens:

Dex9.jpg

  • Confirm the transaction:


Dex10.jpg

Now let's go to the Activity tab and select the transaction:

Dex12.jpg

Exercise:

Select View on Block Explorer . Transaction ID:

0x468661c5cfe8debfce1513abaa8fbd93fad32b460a390c69732089bf2ce73440

Dex13.jpg

Notice that We (0xFOE...) sent 1POL to the Uniswap Universal Router Smart Contract. (0xec7BE89...)


Summer / POL Liquidity Pool

The Universal Router interacted with a 0x0cfA8E8... contract, this is the WMatic/Summer contract. A token pair contract that holds POL and Summer tokens.

The WMatic/Token smart contracts are created by Uniswap to allow the swapping of tokens for POL. These are the famous Liquidity Pools that are the core of the decentralized markets.


Task:

Find the address of the WMatic/Summer contract.

The ERC-20 Token Transactions are these:

  1. We (0xFOE...) sent 1 POL to Universal Router
  2. Universal Router sent 1 POL to the WMatic/Summer token pair contract.
  3. WMatic/Summer token pair contract sent 137.4339 Summer to the Universal Router
  4. Universal Router sent 0.343584 Summer to a FEE collector contract
  5. Universal Router sent 137.0903 Summer to us (0xFOE...)
In the next quest we will investigate the Summer / POL liquidity pool contract.