@aurigami/sdk 1.4.0 → 1.4.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.esm.js CHANGED
@@ -973,6 +973,7 @@ var networkAddresses = {
973
973
  USDC: /*#__PURE__*/'0xb12bfca5a55806aaf64e99521918a4bf0fc40802'.toLowerCase(),
974
974
  WNEAR: /*#__PURE__*/'0xC42C30aC6Cc15faC9bD938618BcaA1a1FaE8501d'.toLowerCase(),
975
975
  TRI: /*#__PURE__*/'0xFa94348467f64D5A457F75F8bc40495D33c65aBB'.toLowerCase(),
976
+ META: /*#__PURE__*/'0xc21ff01229e982d7c8b8691163b0a3cb8f357453'.toLocaleLowerCase(),
976
977
  AURPLY: /*#__PURE__*/dummyAddress.toLowerCase()
977
978
  }
978
979
  };
@@ -2220,7 +2221,7 @@ function _fetchPriceFromCoingecko() {
2220
2221
  switch (_context2.prev = _context2.next) {
2221
2222
  case 0:
2222
2223
  _context2.t0 = id.toLowerCase();
2223
- _context2.next = _context2.t0 === networkAddresses.tokens.AURORA ? 3 : _context2.t0 === networkAddresses.tokens.TRI ? 4 : 5;
2224
+ _context2.next = _context2.t0 === networkAddresses.tokens.AURORA ? 3 : _context2.t0 === networkAddresses.tokens.TRI ? 4 : _context2.t0 === networkAddresses.tokens.META ? 5 : 6;
2224
2225
  break;
2225
2226
 
2226
2227
  case 3:
@@ -2230,9 +2231,12 @@ function _fetchPriceFromCoingecko() {
2230
2231
  return _context2.abrupt("return", fetchPriceFromCoingeckoAPI('trisolaris'));
2231
2232
 
2232
2233
  case 5:
2233
- throw Error("Unknown token " + id + " in fetchPriceFromCoingecko");
2234
+ return _context2.abrupt("return", fetchPriceFromCoingeckoAPI('meta-pool'));
2234
2235
 
2235
2236
  case 6:
2237
+ throw Error("Unknown token " + id + " in fetchPriceFromCoingecko");
2238
+
2239
+ case 7:
2236
2240
  case "end":
2237
2241
  return _context2.stop();
2238
2242
  }
@@ -2446,7 +2450,7 @@ function _fetchStNEARPrice() {
2446
2450
 
2447
2451
  function shouldFetchFromCoingecko(address) {
2448
2452
  address = address.toLowerCase();
2449
- return address == networkAddresses.tokens.AURORA || address == networkAddresses.tokens.TRI;
2453
+ return address == networkAddresses.tokens.AURORA || address == networkAddresses.tokens.TRI || address == networkAddresses.tokens.META;
2450
2454
  }
2451
2455
 
2452
2456
  function fetchPrice(_x11, _x12) {
@@ -2488,7 +2492,7 @@ function _fetchPrice() {
2488
2492
  return _context8.abrupt("return", fetchPriceFromOracle(matchingAuToken.address, getDecimal(address), provider));
2489
2493
 
2490
2494
  case 9:
2491
- if (!isSameAddress(address, networkAddresses.tokens.AUPLYLP)) {
2495
+ if (!isSameAddress(address, networkAddresses.tokens.AURPLY)) {
2492
2496
  _context8.next = 13;
2493
2497
  break;
2494
2498
  }