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

Commit

Permalink
Add all supported 1inch networks
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyangc committed Nov 17, 2024
1 parent bde14c6 commit 85d52cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swapapi/src/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const sdk = new SDK({
blockchainProvider: new PrivateKeyProviderConnector(privateKey, web3), // only required for order creation
});

const supportedNetworks = [NetworkEnum.ARBITRUM, NetworkEnum.BASE, NetworkEnum.GNOSIS, NetworkEnum.POLYGON];

export const swap = async function (srcToken: string, dstToken: string, amount: string) {
const srcNetwork = NetworkEnum.GNOSIS;
const dstNetwork = NetworkEnum.ARBITRUM;
Expand Down

0 comments on commit 85d52cf

Please sign in to comment.