https://github.com/bunsdev/swapr-sdk-bundle
https://github.com/bunsdev/swapr-sdk-bundle
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bunsdev/swapr-sdk-bundle
- Owner: BunsDev
- License: agpl-3.0
- Created: 2022-03-17T06:29:34.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-03-16T22:52:46.000Z (over 4 years ago)
- Last Synced: 2025-02-01T09:29:26.496Z (over 1 year ago)
- Size: 1.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swapr SDK
## Getting Started
### Running tests
To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.
First clone the repository:
```sh
git clone https://github.com/levelkdev/dxswap-sdk.git
```
Move into the dxswap-sdk working directory
```sh
cd dxswap-sdk/
```
Install dependencies
```sh
yarn install
```
Run tests
```sh
yarn 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 |
| ---------- | -------- | ------------ | ------------ |
| Swapr | ✅ | ✅ | ✅ |
| Uniswap v2 | ✅ | ✅ | ✅ |
| SushiSwap | ✅ | ✅ | ✅ |
| Honeyswap | | | ✅ |
| Levinswap | | | ✅ |
| Baoswap | | | ✅ |
| Curve | WIP | ✅ | ✅ |
The `Trade` class is extendable. New DEXs can be added to the SDK by extending the `Trade` and adding required methods.