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