impermax-sdk 1.2.39 → 1.2.41
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,8 @@ const coingecko_ids = {
|
|
|
36
36
|
"0x5756a28e2aae01f600fc2c01358395f5c1f8ad3a": "vesync",
|
|
37
37
|
"0x160e07e42adbc1fce92d505b579bcd8a3fbea77d": "dracula-fi",
|
|
38
38
|
// Scroll
|
|
39
|
-
"
|
|
39
|
+
"0x1a2fcb585b327fadec91f55d45829472b15f17a4": "tokan",
|
|
40
|
+
"0x78ab77f7d590fb101aa18affc238cbfea31ead5b": "impermax"
|
|
40
41
|
};
|
|
41
42
|
class OffchainPriceHelper {
|
|
42
43
|
constructor(offchain) {
|
|
@@ -144,6 +145,9 @@ class OffchainPriceHelper {
|
|
|
144
145
|
if (tokenAddress.toLowerCase() === '0x3f56e0c36d275367b8c502090edf38289b3dea0d') { // TEMPORARY fix for MAI
|
|
145
146
|
return 1;
|
|
146
147
|
}
|
|
148
|
+
if (tokenAddress.toLowerCase() === '0x2fc5cf65fd0a660801f119832b2158756968266d') { // TEMPORARY fix for CHI
|
|
149
|
+
return 1;
|
|
150
|
+
}
|
|
147
151
|
if (tokenAddress.toLowerCase() === '0xc71aaf8e486e3f33841bb56ca3fd2ac3fa8d29a8') { // TEMPORARY fix for WSTETH Canto
|
|
148
152
|
return (yield this.getDebankTokenPrice('0x5fd55a1b9fc24967c4db09c513c3ba0dfa7ff687')) * 1.12;
|
|
149
153
|
}
|
|
@@ -159,7 +163,7 @@ class OffchainPriceHelper {
|
|
|
159
163
|
"0xea6887e4a9cda1b77e70129e5fba830cdb5cddef",
|
|
160
164
|
"0x60bb3d364b765c497c8ce50ae0ae3f0882c5bd05",
|
|
161
165
|
"0x900f1ec5819fa087d368877cd03b265bf1802667",
|
|
162
|
-
"0xea38f1ccf77bf43f352636241b05dd8f6f5f52b2"
|
|
166
|
+
"0xea38f1ccf77bf43f352636241b05dd8f6f5f52b2"
|
|
163
167
|
].includes(tokenAddress.toLowerCase())) { // fix for IMX
|
|
164
168
|
return 0;
|
|
165
169
|
}
|