@aurigami/sdk 1.19.4 → 1.19.5

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.
@@ -1897,25 +1897,31 @@ function _fetchPrice2() {
1897
1897
  while (1) switch (_context14.prev = _context14.next) {
1898
1898
  case 0:
1899
1899
  assert(PRICE_WHITELISTED.has(address.toLocaleLowerCase()), "Address " + address + " is not whitelisted for price fetching");
1900
- if (!shouldFetchFromKyberSwap(address)) {
1900
+ if (!(address.toLowerCase() == networkAddresses.tokens.META)) {
1901
1901
  _context14.next = 3;
1902
1902
  break;
1903
1903
  }
1904
+ return _context14.abrupt("return", fetchPriceFromDefiLlamaAndCoingecko(address));
1905
+ case 3:
1906
+ if (!shouldFetchFromKyberSwap(address)) {
1907
+ _context14.next = 5;
1908
+ break;
1909
+ }
1904
1910
  return _context14.abrupt("return", fetchPriceFromKyberSwap(address, provider)["catch"](function (e) {
1905
1911
  return fetchPriceFromDefiLlamaAndCoingecko(address);
1906
1912
  }));
1907
- case 3:
1913
+ case 5:
1908
1914
  matchingAuToken = networkAddresses.auTokens.find(function (auToken) {
1909
1915
  return isSameAddress(auToken.underlying, address);
1910
1916
  });
1911
1917
  if (!(matchingAuToken !== undefined)) {
1912
- _context14.next = 8;
1918
+ _context14.next = 10;
1913
1919
  break;
1914
1920
  }
1915
1921
  return _context14.abrupt("return", fetchPriceFromOracle(matchingAuToken.address, getDecimal(address), provider));
1916
- case 8:
1922
+ case 10:
1917
1923
  throw Error("Unable to fetch price for " + address);
1918
- case 9:
1924
+ case 11:
1919
1925
  case "end":
1920
1926
  return _context14.stop();
1921
1927
  }