Display the default exchange ratio to calculate the number of tokens that can be obtained.
- Demo contract
- Faucet
- Swap Token
To get started with this boilerplate, you just need to follow these simple steps:
-
Connect to MetaMask in Remix
-
Deploy contracts on Remix
-
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=
-
Get a 2:1 tokens via the faucet button
-
Input the token value then swap it.
By MIT licensed.