From 312bf48744c4cd0d97ed9e98baadc2f1960b8b32 Mon Sep 17 00:00:00 2001 From: sarneijim Date: Fri, 20 Sep 2024 16:10:54 +0100 Subject: [PATCH] fix: fix remit call --- lib/src/api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/api.ts b/lib/src/api.ts index 828c9a1..fd03475 100644 --- a/lib/src/api.ts +++ b/lib/src/api.ts @@ -5,8 +5,8 @@ import { decodeSellPayload } from "@ledgerhq/hw-app-exchange"; import { BEData, ExchangeType } from "./sdk"; const SWAP_BACKEND_URL = "https://swap.ledger.com/v5/swap"; -const SELL_BACKEND_URL = "https://buy.api.aws.prd.ldg-tech.com/sell/v1/remit"; -const CARD_BACKEND_URL = "https://buy.api.aws.prd.ldg-tech.com/card/v1/remit"; +const SELL_BACKEND_URL = "https://buy.api.aws.prd.ldg-tech.com/sell/v1"; +const CARD_BACKEND_URL = "https://buy.api.aws.prd.ldg-tech.com/card/v1"; let swapAxiosClient = axios.create({ @@ -221,7 +221,7 @@ export async function retrieveSellPayload(data: SellRequestPayload) { nonce: data.nonce, }; const axiosClient = data.type === ExchangeType.SELL ? sellAxiosClient : cardAxiosClient; - const res = await axiosClient.post("", request); + const res = await axiosClient.post("/remit", request); return parseSellBackendInfo(res.data); }