Skip to content

Conversation

@abrkn
Copy link

@abrkn abrkn commented Oct 9, 2020

This pull request adds the SideShift.ai exchange plugin to Edge Wallet.

makeSideshiftPlugin function is defined and added to the index.js file as described in the swap plugin integration Wiki page. The plugin utilizes the SideShift.ai REST API, first fetching /rates and /permissions to determine if the users location isn't restricted by SideShift.ai and the amount that the user is trying to exchange is between the min and max amount possible to shift. Then the /quote endpoint creates a fixed quote and based on that an order is created with the /orders endpoint. The data returned by SideShift.ai API is processed to an EdgeSpendInfo object as required by Edge.

SideShift.ai plugin only returns fixed rate orders.

The README has also been updated to ease the process of testing.

Accompanying pull requests:

@thehobbit85 thehobbit85 merged commit 2c4a38b into EdgeApp:master Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants