A decentralized application for over-the-counter token swaps on Polygon networks.
- Polygon Mainnet
- Polygon Amoy Testnet
- additional can be added depending on where smart contract is deployed and added to configs
- Node.js
- MetaMask
- Test tokens for testing (on respective networks)
The application supports multiple networks through config.js
. Current supported networks:
{
"137": {
name: "Polygon Mainnet",
contractAddress: "YOUR_CONTRACT_ADDRESS",
explorer: "https://polygonscan.com",
rpcUrl: "https://polygon-rpc.com"
},
"80002": {
name: "Amoy",
contractAddress: "0xE9B83Ef40251017D9E8E0685d3Dd96F7C64d40cA",
explorer: "https://www.oklink.com/amoy",
rpcUrl: "https://rpc-amoy.polygon.technology"
}
}
- Install dependencies:
npm install
-
Configure your network settings in
config.js
-
Start the node server:
http-server
- Connect your wallet and ensure you're on the correct network
- Create OTC swap orders
- Fill existing orders
- Cancel your orders
- View active orders
- Network switching support
- Real-time order updates
- Test on Amoy testnet first
- Get test tokens from the Polygon faucet
- Ensure your wallet has sufficient native tokens for gas
- Always verify token addresses
- Check order details carefully before swapping
- Never share your private keys
- Use trusted token contracts only
- Chain ID: 137
- RPC URL: https://polygon-rpc.com
- Explorer: https://polygonscan.com
- Chain ID: 80002
- RPC URL: https://rpc-amoy.polygon.technology
- Explorer: https://www.oklink.com/amoy
- Faucet: https://faucet.polygon.technology/
For issues and feature requests, please open an issue on the repository.