An open source interface for Uniswap -- a protocol for decentralized exchange of Ethereum tokens.
- Website: uniswap.org
- Interface: app.uniswap.org
- Docs: uniswap.org/docs/
- Twitter: @UniswapProtocol
- Reddit: /r/Uniswap
- Email: [email protected]
- Discord: Uniswap
- Whitepaper: Link
To access the Uniswap Interface, use an IPFS gateway link from the latest release, or visit app.uniswap.org.
Please see the @uniswap/default-token-list repository.
yarn
yarn start
To have the interface default to a different network when a wallet is not connected:
- Make a copy of
.env
named.env.local
- Change
REACT_APP_NETWORK_ID
to"{YOUR_NETWORK_ID}"
- Change
REACT_APP_NETWORK_URL
to e.g."https://{YOUR_NETWORK_ID}.infura.io/v3/{YOUR_INFURA_KEY}"
Note that the interface only works on testnets where both Uniswap V2 and multicall are deployed. The interface will not work on other networks.
Please open all pull requests against the master
branch.
CI checks will run against all PRs.
The Uniswap Interface supports swapping against, and migrating or removing liquidity from Uniswap V1. However, if you would like to use Uniswap V1, the Uniswap V1 interface for mainnet and testnets is accessible via IPFS gateways linked from the v1.0.0 release.
https://github.com/MetaMask/metamask-extension/issues/10122
router.sol
Replace it in Line # 24 for uniswap-v2-periphery/contracts/libraries/UniswapV2Library.sol. //更换init_code_hash , 新部署的factory合约生成init_code_hash
Replace it in INIT_CODE_HASH for uniswap-sdk/src/constants.ts.
前端的一些改动
https://mirror.xyz/0xb71070FC0908D1c147F751D10a6481E36b7A42CC/yztb_GwBikMreAgVX3yP0Y09dgXFkPsX0QhRgjrJ0Bw
https://medium.com/darwinianetwork/build-on-darwinia-2-4-deploying-uniswap-v2-to-crab-pangolin-network-ii-3798e6c43951