Bxpana pfp
Bxpana
@bxpana
🌐 It's time to swap! Let's trade our WETH for another ERC20 token using @Uniswap's Swap Router on our @ZKsync fork. We'll utilize `cast send` to perform the swap. Ready to trade? 🧵👇
0 reply
0 recast
1 reaction

Bxpana pfp
Bxpana
@bxpana
Step 1: Find the Swap Router Address Set the Uniswap Swap Router address in your `.env` and run source .env to update your variables.
1 reply
0 recast
0 reaction

Bxpana pfp
Bxpana
@bxpana
Step 2: Approve WETH for Swapping Allow the Swap Router to spend your WETH. Replace `<AMOUNT_IN>` with the amount you want to swap (in wei). 📝 Again you can use this converter to easily get the amount in wei https://eth-converter.com/
1 reply
0 recast
0 reaction

Bxpana pfp
Bxpana
@bxpana
Step 3: Select an ERC20 Token Choose a token to swap into. Find one from the ZKsync Tokens List (https://era.zksync.io/tokens) and set. Make sure to use a more popular token to make sure there is plenty of liquidity for swapping.
1 reply
0 recast
0 reaction