1.0.1 • Published 3 years ago
@magicorn/sdk v1.0.1
magicorn SDK
Getting Started
Running tests
To run the tests, follow these steps. You must have at least node v16 installed.
First clone the repository:
git clone https://github.com/magicornfinance/magiswap-sdk.gitMove into the dxswap-sdk working directory
cd magicorn-sdkInstall dependencies
npm installRun tests
npm run testMulti-Eco Router Trades
magicorn uses multiple trades to find best protocol and route for traders. Currently supported DEXs are
| Protocol | Ethereum | Arbitrum One | Gnosis Chain | Polygon |
|---|---|---|---|---|
| magicorn | ✅ | ✅ | ✅ | |
| Uniswap v2 | ✅ | ✅ | ✅ | |
| SushiSwap | ✅ | ✅ | ✅ | ✅ |
| Pancakeswap | WIP | WIP | WIP | |
| CoW Protocol | ✅ | ✅ | ||
| Apeswap | ||||
| Pangolin |
The Trade class is extendable. New DEXs can be added to the SDK by extending the Trade and adding required methods.