Skip to content

Repository files navigation

SynthSwap

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.

Prepping Local Development

Install local dependencies:

npm install

Provide ARCHIVE_NODE_URL in .env. Alchemy has free archive nodes:

ARCHIVE_NODE_URL=<YOUR_ARCHIVE_NODE_PROVIDER_HERE>

Deploy to Mainnet Fork

Run a forked network locally:

npm run fork

Deploy Synthswap onto local forked network:

npm run deploy:fork

Running Tests

To run all tests (unit and integration) under /test

npx hardhat test

To run integration tests:

npm run test:integration

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages