From 862ed97eb1d8ef8bca11ce6a41c1d605d7bcc209 Mon Sep 17 00:00:00 2001 From: mstorozhenko-ledger Date: Thu, 31 Oct 2024 10:01:16 +0000 Subject: [PATCH] chore: changed sell rate example --- pages/docs/ledger-live/exchange/card/providers-liveapp.mdx | 4 ++-- pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/docs/ledger-live/exchange/card/providers-liveapp.mdx b/pages/docs/ledger-live/exchange/card/providers-liveapp.mdx index bf9ff604..8ea43658 100644 --- a/pages/docs/ledger-live/exchange/card/providers-liveapp.mdx +++ b/pages/docs/ledger-live/exchange/card/providers-liveapp.mdx @@ -27,7 +27,7 @@ This method will need you to provide the following parameters: * `fromAccountId`: User's Ledger account id. * `fromAmount`: Amount that will be sold. * `toFiat`: Fiat currency that the user wants to be paid with using provider id. -* `rate`: The rate of the fund. +* `rate`: The crypto/fiat rate. ```js copy exchangeSDK.sell({ @@ -35,7 +35,7 @@ This method will need you to provide the following parameters: fromAccountId: "97f06be9-6fb2-5da3-be71-4e762ed6e115",// Ledger Live uuid4 account (can be a BTC account) fromAmount: new BigNumber(1), toFiat: "EUR", // provider fiat id - rate: 90000, // crypto/fiat rate [BTC/EUR] + rate: 66564, // crypto/fiat rate [BTC/EUR] type: "card" }); ``` diff --git a/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx b/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx index 1e14a912..296a2e04 100644 --- a/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx +++ b/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx @@ -28,7 +28,7 @@ This method will need you to provide the following parameters: * `fromAccountId`: User's Ledger account id, [previously given to the LiveApp](./providers-liveapp) as a query parameter. * `fromAmount`: Amount that will be sold. * `toFiat`: Fiat currency that the user wants to be paid with using provider id. -* `rate`: The rate of the sell. +* `rate`: The crypto/fiat rate. ```js copy exchangeSDK.sell({ @@ -36,7 +36,7 @@ This method will need you to provide the following parameters: fromAccountId: "97f06be9-6fb2-5da3-be71-4e762ed6e115",// Ledger Live uuid4 account (can be a BTC account) fromAmount: new BigNumber(1), toFiat: "EUR", // provider fiat id - rate: 90000, // crypto/fiat rate [BTC/EUR] + rate: 66564, // crypto/fiat rate [BTC/EUR] type: "sell" }); ``` @@ -45,7 +45,7 @@ This method will need you to provide the following parameters: The LiveApp needs to respond to a URL with some parameters. LiveApp URLs are used to open your LiveApp with the quote values that the user already entered in Ledger Live. -The LiveApp URL format is already fixed and will depend on the information you provided inside your [LiveApp manifest](../../../../docs/discover/wallet-api/appendix/manifest) (ex: `ledgerlive://discover/swapprovidername`). +The LiveApp URL format is already fixed and will depend on the information you provided inside your [LiveApp manifest](../../../../docs/discover/wallet-api/appendix/manifest) (ex: `ledgerlive://discover/sellprovidername`). * `account-id`: User’s selected account id, where the crypto he wants to sell is stored.