Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sideshift integration #418

Merged
merged 4 commits into from
Jul 2, 2024
Merged

feat: sideshift integration #418

merged 4 commits into from
Jul 2, 2024

Conversation

chedieck
Copy link
Collaborator

@chedieck chedieck commented Jul 1, 2024

Related to #187

Description

Adds logic to select coins using SideShift's API, displays their amount and the rate of conversion.

This PR adds the logic for selecting the amount & currency to pay with, but it doesn't yet implement the payment itself.

E.g, by selecting BTC and clicking "Pay with BTC", nothing will happen aside from a console.log of "WIP".

It's also important to notice that I didn't work in the design of the components, only their functionality. This PR lays ground for a frontend work to be done, with the goal of making the new stuff more intuitive and agreeable for the eyes.

Finally, it is also important to notice that this PR is off of a proxy branch, meaning approving and merging it won't commit anything to master (since it's incomplete). Nonetheless, it should be reviewed as if the changes here proposed are good enough (in what they propose to address) to eventually go to master (when all the changes are complete).

Test plan

For editable and non-editable paybuttons, there should be a "Don't have any XEC?" text which upon clicking will allow the user to select an alternative cryptocurrency to pay with.

@Klakurka Klakurka self-requested a review July 1, 2024 20:31
Copy link
Member

@Klakurka Klakurka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't seem to get this to build.

image

Copy link
Member

@Klakurka Klakurka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Don't allow people to select the same currency that they're paying to (eg. XEC).

@chedieck
Copy link
Collaborator Author

chedieck commented Jul 2, 2024

  • Don't allow people to select the same currency that they're paying to (eg. XEC).

addressed.

@Klakurka
Copy link
Member

Klakurka commented Jul 2, 2024

This is one of those situations where it would have been good to put this behind a "feature flag" but I'm also ok just merging it as-is. If we had a bit more going on where we'd want to deploy some other feature/fix before this went live, we'd definitely want that flag there to be able to switch it on once it's actually ready.

@Klakurka Klakurka merged commit 4d9d3b4 into master Jul 2, 2024
1 check passed
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.

2 participants