An open API service indexing awesome lists of open source software.

https://github.com/linux08/swap


https://github.com/linux08/swap

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

## Project setup
```
npm install
```

### To run all test
```
npm run test
```

This module exposes two function getAmount and getPath.

- The getAmount function accept an amount (in USDC) argument and returns the token (COMP) equivalent
- The getPath function accept an amount (in USDC) argument and returns the optimal path for the trade