impermax-sdk 1.1.21 → 1.1.22
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.
|
@@ -26,6 +26,7 @@ const coingecko_ids = {
|
|
|
26
26
|
"0x3712871408a829c5cd4e86da1f4ce727efcd28f6": "glacier",
|
|
27
27
|
// ZkSync
|
|
28
28
|
"0x503234f203fc7eb888eec8513210612a43cf6115": "liquity-usd",
|
|
29
|
+
"0x5756a28e2aae01f600fc2c01358395f5c1f8ad3a": "vesync",
|
|
29
30
|
};
|
|
30
31
|
class PriceHelper {
|
|
31
32
|
constructor(subgraph) {
|
|
@@ -164,25 +165,22 @@ class PriceHelper {
|
|
|
164
165
|
if (tokenPrice === 0) {
|
|
165
166
|
//manual fallback
|
|
166
167
|
if (tokenAddress.toLowerCase() === '0xaaa6c1e32c55a7bfa8066a6fae9b42650f262418') { // fix for RAM
|
|
167
|
-
return 0.
|
|
168
|
+
return 0.02;
|
|
168
169
|
}
|
|
169
170
|
if (tokenAddress.toLowerCase() === '0xd5954c3084a1ccd70b4da011e67760b8e78aee84') { // fix for ARX
|
|
170
|
-
return
|
|
171
|
+
return 0.5;
|
|
171
172
|
}
|
|
172
173
|
if (tokenAddress.toLowerCase() === '0xe80772eaf6e2e18b651f160bc9158b2a5cafca65') { // fix for USD+
|
|
173
174
|
return 1;
|
|
174
175
|
}
|
|
175
|
-
if (tokenAddress.toLowerCase() === '0xb348b87b23d5977e2948e6f36ca07e1ec94d7328') { // fix for FISH
|
|
176
|
-
//return 0.07;
|
|
177
|
-
}
|
|
178
176
|
if (tokenAddress.toLowerCase() === '0x3712871408a829c5cd4e86da1f4ce727efcd28f6') { // fix for GLCR
|
|
179
177
|
return 0.011;
|
|
180
178
|
}
|
|
181
179
|
if (tokenAddress.toLowerCase() === '0x5756a28e2aae01f600fc2c01358395f5c1f8ad3a') { // fix for VS
|
|
182
|
-
return 0.
|
|
180
|
+
return 0.05;
|
|
183
181
|
}
|
|
184
182
|
if (tokenAddress.toLowerCase() === '0x1c28edf9e0d66f3124f141a3cf3ef1217f7019c4') { // fix for SLNA
|
|
185
|
-
return 0.
|
|
183
|
+
return 0.00045;
|
|
186
184
|
}
|
|
187
185
|
// try fallback on subgraph
|
|
188
186
|
const subgraphTokenPrice = yield this.getSubgraphTokenPrice();
|