An open source interface for Swap -- a protocol for decentralized exchange of Tron tokens.
- Website: swap2.oikos.cash
Please see the oikos-cash/default-token-list repository.
npm install
npm 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}"
(e.g.11111
for Tron Mainnet network)
Example .env.local
file for Nile network:
REACT_APP_CHAIN_ID="201910292"
REACT_APP_TRON_NETWORK="nile"
Note that the interface only works on testnets where both Swap 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 Swap Interface supports swapping against, and migrating or removing liquidity from Swap V1. However, if you would like to use Swap V1, the Swap V1 interface for mainnet and testnets is accessible via swap-v1.oikos.cash.