Skip to content

Commit b65a3c9

Browse files
authored
chore: change swap api endpoint (#3177)
1 parent 847e2ef commit b65a3c9

File tree

1 file changed

+4
-4
lines changed
  • packages/kit/src/views/Swap/quoter

1 file changed

+4
-4
lines changed

packages/kit/src/views/Swap/quoter/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export class SwapQuoter {
223223
urlParams.quoterType = '0x';
224224
const serverEndPont =
225225
await backgroundApiProxy.serviceSwap.getServerEndPoint();
226-
const url = `${serverEndPont}/exchange/quote`;
226+
const url = `${serverEndPont}/swap/v2/quote`;
227227
const res = await this.httpClient.get(url, { params: urlParams });
228228
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
229229
const response = res.data?.data as FetchQuoteHttpResponse | undefined;
@@ -332,7 +332,7 @@ export class SwapQuoter {
332332

333333
const serverEndPont =
334334
await backgroundApiProxy.serviceSwap.getServerEndPoint();
335-
const url = `${serverEndPont}/exchange/quote`;
335+
const url = `${serverEndPont}/swap/v2/quote`;
336336

337337
const res = await this.httpClient.get(url, { params: urlParams });
338338
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
@@ -355,7 +355,7 @@ export class SwapQuoter {
355355

356356
const serverEndPont =
357357
await backgroundApiProxy.serviceSwap.getServerEndPoint();
358-
const url = `${serverEndPont}/exchange/quote_all`;
358+
const url = `${serverEndPont}/swap/quote_all`;
359359

360360
const res = await this.httpClient.get(url, { params: urlParams });
361361
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
@@ -412,7 +412,7 @@ export class SwapQuoter {
412412
urlParams.disableValidate = Boolean(params.disableValidate);
413413
const serverEndPont =
414414
await backgroundApiProxy.serviceSwap.getServerEndPoint();
415-
const url = `${serverEndPont}/exchange/build_tx`;
415+
const url = `${serverEndPont}/swap/build_tx`;
416416

417417
const res = await this.httpClient.post(url, urlParams);
418418
const requestId = this.parseRequestId(res);

0 commit comments

Comments
 (0)