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

Update SELL info considering ExchangeSDK release #178

Merged
merged 2 commits into from
May 28, 2024

Conversation

sprohaszka-ledger
Copy link
Collaborator

@sprohaszka-ledger sprohaszka-ledger commented Apr 18, 2024

Copy link

vercel bot commented Apr 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
developer-portal-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 8:04am

* `quoteId`: the id coming from your system and [forwarded to your LiveApp](./providers-liveapp) as a query parameter
* `accountId`: user's account id, [previously given to the LiveApp](./providers-liveapp) as a query parameter
* `amount`: amount that will be sell
* `feeStrategy`: `SLOW`, `MEDIUM`, `FAST` or `CUSTOM`.
Copy link
Contributor

Choose a reason for hiding this comment

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

how do you handle custom if no other param ?
we should re-discuss how to handle fees definition.
For swap with moonpay, the Custom is quite broken :/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The fee is handle the same way it is handled by the swap (AFAIK). This is more on Ledger Live side :/

// Crafting Payload...
return {
recipientAddress: "0xc0ffee254729296a45a3885639AC7E10F9d54979"
amount: BigInt("800000000000000000")
Copy link
Contributor

Choose a reason for hiding this comment

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

we should document when the amount is expected in smallestDenomination and when it's in natural unit.

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe better naming of the vars : amountInSmallestDenomination / amountInUsualUnit ?

Signed-off-by: Stéphane Prohaszka <[email protected]>
@sprohaszka-ledger sprohaszka-ledger merged commit 2acccdb into main May 28, 2024
13 checks passed
@sprohaszka-ledger sprohaszka-ledger deleted the feat/LIVE-9024-sell-update branch May 28, 2024 13:10
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.

None yet

4 participants