A set of contracts to support Swapr Eco Router.
Allows trading xDAI, native token of Gnosis Chain, to USDC and USDT, and vice versa. This contract is exclusive to Curve on Gnosis Chain.
Get a quote for trading a pair
Exchange native xDAI to either USDC or USDT.
Exchange native USDC or USDT to native xDAI.
npx hardhat test
Add PRIVATE_KEY
of deployer to .env
echo "PRIVATE_KEY=<private-key>" > .env
Deploy to target network. Make sure its configuration exists in hardhat.config.ts
hardhat run --network gnosis scripts/deploy.ts