@carlomigueldy/atlantis-world-swapr-sdk
v1.2.0-beta.1
Published
An SDK for building applications on top of Swapr
Downloads
7
Maintainers
Readme
Swapr 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/levelkdev/swapr-sdk.git
Move into the dxswap-sdk working directory
cd swapr-sdk
Install dependencies
npm install
Run tests
npm run test
Eco Router Trades
Swapr uses multiple trades to find best protocol and route for traders. Currently supported DEXs are
| Protocol | Ethereum | Arbitrum One | Gnosis Chain | Polygon | | ------------ | -------- | ------------ | ------------ | ------- | | Swapr | ✅ | ✅ | ✅ | | | Uniswap v2 | ✅ | ✅ | ✅ | | | SushiSwap | ✅ | ✅ | ✅ | ✅ | | Honeyswap | | | ✅ | | | Levinswap | | | ✅ | | | Baoswap | | | ✅ | | | Curve | WIP | ✅ | ✅ | | | CoW Protocol | ✅ | | ✅ | | | Quickswap | | | | ✅ | | DFYN | | | | ✅ |
The Trade
class is extendable. New DEXs can be added to the SDK by extending the Trade
and adding required methods.