Update README; add avax and bsc rpc

This commit is contained in:
Karl Kempe 2022-01-31 22:42:18 +00:00
parent 3b6e8963e7
commit 3b41ec9ae2
3 changed files with 10 additions and 8 deletions

View File

@ -6,7 +6,7 @@ Multi-chain native-to-native token swap using existing DEXes.
### Details
Using liquidity of native vs UST (i.e. the UST highway), one can swap from native A on chain A to native B on chain B. For this specific example, we demonstrate a swap between Polygon (Mumbai testnet) and Ethereum (Goerli testnet) between MATIC and ETH. We wrote example smart contracts to interact with Uniswap V3 and Uniswap V2 forks (QuickSwap in this specific example for Polygon). Any DEX can be used to replace our example as long as the swap for a particular DEX has all of its parameters to perform the swap(s).
Using liquidity of native vs UST (i.e. the UST highway), one can swap from native A on chain A to native B on chain B. For this specific example, we demonstrate a swap between any combination of ETH (Goerli testnet), AVAX (Fuji testnet), MATIC (Mumbai testnet) and BNB (BSC testnet). We wrote example smart contracts to interact with Uniswap V3 and Uniswap V2 forks. Any DEX can be used to replace our example as long as the swap for a particular DEX has all of its parameters to perform the swap(s).
A protocol that hosts NativeSwap is expected to run its own relayer to enhance its user experience by only requiring a one-click transaction to perform the complete swap. Otherwise the user will have to perform an extra transaction to manually allow the final swap.
@ -49,8 +49,8 @@ cp .env.sample .env
Then deploy the example contracts:
```
./deploy_to_goerli.sh
./deploy_to_mumbai.sh
./deploy_v2.sh
./deploy_v3.sh
```
Then change into the react directory, copy sample.env to .env and replace YOUR-PROJECT-ID with your Infura Goerli and Mumbai Project IDs

View File

@ -1,3 +1,5 @@
GOERLI_PROVIDER=https://goerli.infura.io/v3/YOUR-PROJECT-ID
MUMBAI_PROVIDER=https://polygon-mumbai.infura.io/v3/YOUR-PROJECT-ID
ETH_PRIVATE_KEY=
FUJI_PROVIDER="https://api.avax-test.network/ext/bc/C/rpc"
BSC_PROVIDER="https://data-seed-prebsc-1-s1.binance.org:8545"
ETH_PRIVATE_KEY=

View File

@ -1,4 +1,4 @@
REACT_APP_GOERLI_PROVIDER=https://goerli.infura.io/v3/YOUR-PROJECT-ID
REACT_APP_MUMBAI_PROVIDER=https://polygon-mumbai.infura.io/v3/YOUR-PROJECT-ID
REACT_APP_FUJI_PROVIDER=
REACT_APP_BSC_PROVIDER=
REACT_APP_GOERLI_PROVIDER="https://goerli.infura.io/v3/YOUR-PROJECT-ID"
REACT_APP_MUMBAI_PROVIDER="https://polygon-mumbai.infura.io/v3/YOUR-PROJECT-ID"
REACT_APP_FUJI_PROVIDER="https://api.avax-test.network/ext/bc/C/rpc"
REACT_APP_BSC_PROVIDER="https://data-seed-prebsc-1-s1.binance.org:8545"