Skip to content

Commit

Permalink
fix: 1inch swap url
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Oct 16, 2023
1 parent 10cd85d commit c1d8f62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/swap/oneInch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { NetworkType } from "@gearbox-protocol/sdk";
import {
CHAINS,
formatBN,
getDecimals,
IERC20__factory,
Expand Down Expand Up @@ -33,7 +32,7 @@ export default class OneInch extends BaseSwapper implements ISwapper {
throw new Error("1inch API key not provided");
}
this.apiClient = axios.create({
baseURL: `https://api.1inch.dev/v5.2/${CHAINS[network]}`,
baseURL: `https://api.1inch.dev/swap/v5.2/1`,
headers: {
Authorization: `Bearer ${config.oneInchApiKey}`,
accept: "application/json",
Expand Down

0 comments on commit c1d8f62

Please sign in to comment.