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(LIVE-9638): change provider info from static object to API call #6853

Merged
merged 6 commits into from
May 21, 2024

Conversation

lpaquet-ledger
Copy link
Contributor

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Change static provider info to an API call

❓ Context

https://ledgerhq.atlassian.net/browse/LIVE-9638


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@lpaquet-ledger lpaquet-ledger requested a review from a team as a code owner May 14, 2024 11:56
Copy link

vercel bot commented May 14, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
web-tools βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback May 16, 2024 8:02am
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 8:02am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 8:02am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 8:02am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 8:02am

@@ -90,11 +90,15 @@ export async function fetchRates({
}

const url = new URL(`${getSwapAPIBaseURL()}/rate`);
const providers = await getAvailableProviders();
if (removeProviders["moonpay"]) {
providers.splice(providers.indexOf("moonpay"), 1);
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't it this moonpay coming from a Feature Flag or something, seems odd rn

Copy link
Member

Choose a reason for hiding this comment

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

Oh nvm imo we should have it generic and loop on all keys of removeProviders

@lpaquet-ledger lpaquet-ledger merged commit 2fc0865 into develop May 21, 2024
60 of 61 checks passed
@lpaquet-ledger lpaquet-ledger deleted the feat/LIVE-9638 branch May 21, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants