impermax-sdk 1.2.39 → 1.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ const coingecko_ids = {
36
36
  "0x5756a28e2aae01f600fc2c01358395f5c1f8ad3a": "vesync",
37
37
  "0x160e07e42adbc1fce92d505b579bcd8a3fbea77d": "dracula-fi",
38
38
  // Scroll
39
- "0x1a2fCB585b327fAdec91f55D45829472B15f17a4": "tokan"
39
+ "0x1a2fcb585b327fadec91f55d45829472b15f17a4": "tokan"
40
40
  };
41
41
  class OffchainPriceHelper {
42
42
  constructor(offchain) {
@@ -144,6 +144,9 @@ class OffchainPriceHelper {
144
144
  if (tokenAddress.toLowerCase() === '0x3f56e0c36d275367b8c502090edf38289b3dea0d') { // TEMPORARY fix for MAI
145
145
  return 1;
146
146
  }
147
+ if (tokenAddress.toLowerCase() === '0x2fc5cf65fd0a660801f119832b2158756968266d') { // TEMPORARY fix for CHI
148
+ return 1;
149
+ }
147
150
  if (tokenAddress.toLowerCase() === '0xc71aaf8e486e3f33841bb56ca3fd2ac3fa8d29a8') { // TEMPORARY fix for WSTETH Canto
148
151
  return (yield this.getDebankTokenPrice('0x5fd55a1b9fc24967c4db09c513c3ba0dfa7ff687')) * 1.12;
149
152
  }
@@ -160,6 +163,7 @@ class OffchainPriceHelper {
160
163
  "0x60bb3d364b765c497c8ce50ae0ae3f0882c5bd05",
161
164
  "0x900f1ec5819fa087d368877cd03b265bf1802667",
162
165
  "0xea38f1ccf77bf43f352636241b05dd8f6f5f52b2",
166
+ "0x78ab77f7d590fb101aa18affc238cbfea31ead5b" // scroll ibex
163
167
  ].includes(tokenAddress.toLowerCase())) { // fix for IMX
164
168
  return 0;
165
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",