Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task6: coolberwin #1324

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

task6: coolberwin #1324

wants to merge 2 commits into from

Conversation

coolberwin
Copy link
Contributor

task6 任务:制作一个与uniswap交互的前端app

合约信息

参考 uniswap v2-deployments

Network Factory Contract Address V2Router02 Contract Address
Mainnet 0x5C69bEe701ef814a2B6a3EDD4B1652C89c5aA6f 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Ethereum Sepolia 0xB7f907f7A9eBC822a80BD25E224b4e42Ce0A698A0 0x425141165d3DE9FEC831896C016617a52363b687
Arbitrum 0xf1D7CC64Fb4452F05c498126312eBE29f30Fbcf9 0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24
Avalanche 0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C 0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24
BNB Chain 0x8909Dc15e40173Ff469943b6eB8132c65e18eC6 0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24
Base 0x8909Dc15e40173Ff469943b6eB8132c65e18eC6 0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24
Optimism 0x0c3c1c532F1e39EdF36BE9Fe0bE1410313E074Bf 0xA47b5Da61326A6379179b40d0F57E5bbDC962c2
Polygon 0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C 0xedf6066a2b290C1857838627CF4776A2C8077AD1
Blast 0x5C34646d33F90bABa7d0D6388507C889C1070 0xBB66Eb1c5e875933D44Ae661dbD8e5D9B03035

一些改动

  • 增加自动设置 slipper (虽然不好看)
  • 删除多余 链 只保留 mainnet 和 base
  • 删除 多余代币 只保留 weth 和 usdc
  • 更改resource.js中 mainnet 和 base 的rpc

关键截图

1. 主界面

图片1

2. 自定义滑点

图片2

3. 交易approve

图片3

@coolberwin coolberwin changed the title task0: coolberwin task6: coolberwin Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant