diff --git a/package-lock.json b/package-lock.json index 42cd1ad..b560d00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.10-rc21", + "version": "0.20.16", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@orionprotocol/sdk", - "version": "0.20.10-rc21", + "version": "0.20.16", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index cdfa0f2..599d44d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.10-rc24", + "version": "0.20.10-rc25", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/Unit/Exchange/generateSwapCalldata.ts b/src/Unit/Exchange/generateSwapCalldata.ts index 506c79b..eb59716 100644 --- a/src/Unit/Exchange/generateSwapCalldata.ts +++ b/src/Unit/Exchange/generateSwapCalldata.ts @@ -62,7 +62,7 @@ export async function generateSwapCalldataWithUnit({ let path = SafeArray.from(arrayLikePath); const walletBalance = await getWalletBalance( - safeGet(assetToAddress, path.first().assetIn), + assetToAddress[path.first().assetIn] ?? path.first().assetIn.toLowerCase(), receiverAddress, unit.provider ); diff --git a/src/config/chains.json b/src/config/chains.json index 68b940c..7da650e 100644 --- a/src/config/chains.json +++ b/src/config/chains.json @@ -99,8 +99,8 @@ "rpc": "https://rpcapi.fantom.network/", "baseCurrencyName": "FTM", "contracts": { - "WETH": "", - "curveRegistry": "" + "WETH": "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83", + "curveRegistry": "0x0f854EA9F38ceA4B1c2FC79047E9D0134419D5d6" } }, "137": { @@ -112,8 +112,8 @@ "rpc": "https://polygon-rpc.com/", "explorer": "https://polygonscan.com/", "contracts": { - "WETH": "", - "curveRegistry": "" + "WETH": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", + "curveRegistry": "0x094d12e5b541784701FD8d65F11fc0598FBC6332" } }, "80001": { @@ -138,7 +138,7 @@ "rpc": "https://exchainrpc.okex.org/", "baseCurrencyName": "OKT", "contracts": { - "WETH": "", + "WETH": "0x843340759bFCa4a3776F401cD2E03fE9bc0d838f", "curveRegistry": "" } },