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

fix: LNS Swap for SOL #8640

Merged

Conversation

andreicovaciu
Copy link
Contributor

@andreicovaciu andreicovaciu commented Dec 9, 2024

βœ… Checklist

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

πŸ“ Description

Fix LNS Swap for SOL

❓ Context

  • JIRA or GitHub link:

🧐 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)

@andreicovaciu andreicovaciu requested a review from a team as a code owner December 9, 2024 10:43
Copy link

vercel bot commented Dec 9, 2024

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

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 10:45am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 10:45am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 10:45am
web-tools ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 10:45am

@live-github-bot live-github-bot bot added the desktop Has changes in LLD label Dec 9, 2024
Comment on lines +88 to +92
const parentFrom =
(exchange?.fromAccount?.type === "TokenAccount" && exchange?.fromParentAccount?.currency?.id) ||
"";
const parentTo =
(exchange?.toAccount?.type === "TokenAccount" && exchange?.toParentAccount?.currency?.id) || "";
Copy link
Contributor

@Justkant Justkant Dec 9, 2024

Choose a reason for hiding this comment

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

If we want we could also use exchange?.fromAccount?.currency.parentCurrency.id instead of exchange?.fromParentAccount?.currency?.id but it's fine like that

@andreicovaciu andreicovaciu merged commit 632e2c4 into develop Dec 9, 2024
41 of 44 checks passed
@andreicovaciu andreicovaciu deleted the fix/LIVE-14838-lns-solana-tokens-error-message branch December 9, 2024 10:58
DatDraggy pushed a commit to DatDraggy/ledger-live that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants