@aurigami/sdk 1.4.5 → 1.4.6

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.esm.js CHANGED
@@ -2458,37 +2458,45 @@ function _fetchPrice() {
2458
2458
  return _context8.abrupt("return", new BigNumber(0));
2459
2459
 
2460
2460
  case 2:
2461
- if (!shouldFetchFromCoingecko(address)) {
2461
+ if (!isSameAddress(address, networkAddresses.tokens.stNEAR)) {
2462
2462
  _context8.next = 4;
2463
2463
  break;
2464
2464
  }
2465
2465
 
2466
- return _context8.abrupt("return", fetchPriceFromCoingecko(address));
2466
+ return _context8.abrupt("return", fetchStNEARPrice());
2467
2467
 
2468
2468
  case 4:
2469
+ if (!shouldFetchFromCoingecko(address)) {
2470
+ _context8.next = 6;
2471
+ break;
2472
+ }
2473
+
2474
+ return _context8.abrupt("return", fetchPriceFromCoingecko(address));
2475
+
2476
+ case 6:
2469
2477
  matchingAuToken = networkAddresses.auTokens.find(function (auToken) {
2470
2478
  return isSameAddress(auToken.underlying, address);
2471
2479
  });
2472
2480
 
2473
2481
  if (!(matchingAuToken !== undefined)) {
2474
- _context8.next = 9;
2482
+ _context8.next = 11;
2475
2483
  break;
2476
2484
  }
2477
2485
 
2478
2486
  return _context8.abrupt("return", fetchPriceFromOracle(matchingAuToken.address, getDecimal(address), provider));
2479
2487
 
2480
- case 9:
2488
+ case 11:
2481
2489
  if (!isSameAddress(address, networkAddresses.tokens.AURPLY)) {
2482
- _context8.next = 13;
2490
+ _context8.next = 15;
2483
2491
  break;
2484
2492
  }
2485
2493
 
2486
2494
  return _context8.abrupt("return", fetchLPPrice(address, provider));
2487
2495
 
2488
- case 13:
2496
+ case 15:
2489
2497
  return _context8.abrupt("return", fetchPriceFromCoingecko(address));
2490
2498
 
2491
- case 14:
2499
+ case 16:
2492
2500
  case "end":
2493
2501
  return _context8.stop();
2494
2502
  }