diff --git a/README.md b/README.md index f4d0938..804d81b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/contracts/.env.sample b/contracts/.env.sample index 2e2f50b..b906cf0 100644 --- a/contracts/.env.sample +++ b/contracts/.env.sample @@ -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= \ No newline at end of file +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= diff --git a/react/.env.sample b/react/.env.sample index 458c04b..5d6c4ec 100644 --- a/react/.env.sample +++ b/react/.env.sample @@ -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= \ No newline at end of file +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"