This section describes how to launch Uniswap Interface on Solana NEON. Some additional steps are required to work correctly in this environment. These steps are related to deploying the necessary contracts and changing the addresses of the contracts to the actual ones.
Preparation steps:
Deploy the necessary contracts from https://github.com/Cyber-Core/uniswap-governance and https://github.com/Cyber-Core/uniswap-v2-periphery. For this:
yarn && yarn compile
node node_modules/mocha/bin/mocha --grep " deploy contracts$"
Install dependencies yarn
Patch Uniswap SDK: patch -p0 <node_modules.patch
Change contract addresses to actual: ./update_contracts_new.sh
Run: yarn start
An open source interface for Uniswap -- a protocol for decentralized exchange of Ethereum tokens.
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:
.env
named .env.local
REACT_APP_NETWORK_ID
to "{YOUR_NETWORK_ID}"
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.