Skip to content

Commit

Permalink
fix: fix remit call
Browse files Browse the repository at this point in the history
  • Loading branch information
sarneijim committed Sep 20, 2024
1 parent 388af32 commit 312bf48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 312bf48

Please sign in to comment.