Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.09 KB

README-Swap.md

File metadata and controls

48 lines (29 loc) · 1.09 KB

Uniswap V2 - Swap Token

Display the default exchange ratio to calculate the number of tokens that can be obtained.

solidity remix

Features ⚡

  • Demo contract
  • Faucet
  • Swap Token

Uniswap V2 UI


How to use 🤔

To get started with this boilerplate, you just need to follow these simple steps:

  1. Connect to MetaMask in Remix

  2. Deploy contracts on Remix

  3. Move .env.example file to .env and add the values for the following keys:

     NEXT_PUBLIC_SEPOLIA_JTOKEN_A=
     NEXT_PUBLIC_SEPOLIA_JTOKEN_B=
     NEXT_PUBLIC_SEPOLIA_JSWAPFACTORY=
     NEXT_PUBLIC_SEPOLIA_UNISWAPV2PAIR=
    
  4. Get a 2:1 tokens via the faucet button

  5. Input the token value then swap it.

License

By MIT licensed.