Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
feat: use Oneinch v5 and common CrosschainForwarder
Browse files Browse the repository at this point in the history
  • Loading branch information
mncdg committed Feb 9, 2024
1 parent 26dd30b commit 6f2257f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sample.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config: ExecutorLaunchConfig = {
[ChainId.Ethereum]: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
[ChainId.Linea]: '0x176211869cA2b568f2A7D4EE941E073a821EE1ff',
[ChainId.Optimism]: '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
[ChainId.Polygon]: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
[ChainId.Polygon]: '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359',
[ChainId.Solana]: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
},
//
Expand Down Expand Up @@ -78,7 +78,7 @@ const config: ExecutorLaunchConfig = {

oneInchConfig: {
apiServer: 'https://api.1inch.dev/swap',
apiToken: undefined, // obtain one at https://portal.1inch.dev
apiToken: `${process.env.ONEINCH_API_TOKEN}`, // obtain one at https://portal.1inch.dev
disablePMMProtocols: true,
disabledProtocols: [],
},
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export interface ExecutorLaunchConfig {
};

oneInchConfig?: {
apiToken?: string;
apiToken: string;
apiServer?: string;
disablePMMProtocols?: boolean;
disabledProtocols?: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/processors/swap-connector-implementation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@debridge-finance/dln-client';

type OneInchConfig = {
apiToken?: string;
apiToken: string;
apiServer?: string;
disablePMMProtocols?: boolean;
disabledProtocols?: string[];
Expand Down

0 comments on commit 6f2257f

Please sign in to comment.