This is a simple utlity contract that combines a 1Inch swap with the Synthetix exchanger enabling low slippage swaps into synths. See ISynthSwap.sol for the current interface.
Install local dependencies:
npm install
Provide ARCHIVE_NODE_URL
in .env
. Alchemy has free archive nodes:
ARCHIVE_NODE_URL=<YOUR_ARCHIVE_NODE_PROVIDER_HERE>
Run a forked network locally:
npm run fork
Deploy Synthswap onto local forked network:
npm run deploy:fork
To run all tests (unit and integration) under /test
npx hardhat test
To run integration tests:
npm run test:integration