merge branch 'main' into 'OP-4504-fix-governance

This commit is contained in:
TheJuze
2023-11-10 11:09:33 +03:00
4 changed files with 9 additions and 9 deletions

4
package-lock.json generated
View File

@@ -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": {

View File

@@ -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",

View File

@@ -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
);

View File

@@ -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": ""
}
},