@aurigami/sdk 1.2.0 → 1.2.1
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.
- package/dist/sdk.cjs.development.js +6 -1
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +6 -1
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/priceFetcher.ts +7 -1
|
@@ -2297,6 +2297,11 @@ function _fetchStNEARPrice() {
|
|
|
2297
2297
|
return _fetchStNEARPrice.apply(this, arguments);
|
|
2298
2298
|
}
|
|
2299
2299
|
|
|
2300
|
+
function shouldFetchFromCoingecko(address) {
|
|
2301
|
+
address = address.toLowerCase();
|
|
2302
|
+
return address == networkAddresses.tokens.AURORA || address == networkAddresses.tokens.TRI;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2300
2305
|
function fetchPrice(_x11, _x12) {
|
|
2301
2306
|
return _fetchPrice.apply(this, arguments);
|
|
2302
2307
|
}
|
|
@@ -2324,7 +2329,7 @@ function _fetchPrice() {
|
|
|
2324
2329
|
return _context8.abrupt("return", fetchStNEARPrice());
|
|
2325
2330
|
|
|
2326
2331
|
case 4:
|
|
2327
|
-
if (!
|
|
2332
|
+
if (!shouldFetchFromCoingecko(address)) {
|
|
2328
2333
|
_context8.next = 6;
|
|
2329
2334
|
break;
|
|
2330
2335
|
}
|