@scallop-io/sui-scallop-sdk 0.46.67 → 0.46.69

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/index.mjs CHANGED
@@ -2851,7 +2851,7 @@ var getFlashLoanFees = async (query, assetNames) => {
2851
2851
  };
2852
2852
 
2853
2853
  // src/queries/spoolQuery.ts
2854
- import { normalizeStructTag as normalizeStructTag4 } from "@mysten/sui.js/utils";
2854
+ import { normalizeStructTag as normalizeStructTag4, parseStructTag as parseStructTag2 } from "@mysten/sui.js/utils";
2855
2855
  var getSpools = async (query, stakeMarketCoinNames = [...SUPPORT_SPOOLS], indexer = false) => {
2856
2856
  const stakeCoinNames = stakeMarketCoinNames.map(
2857
2857
  (stakeMarketCoinName) => query.utils.parseCoinName(stakeMarketCoinName)
@@ -2943,6 +2943,9 @@ var getSpool = async (query, marketCoinName, indexer = false, marketPool, coinPr
2943
2943
  createdAt: spoolFields.created_at,
2944
2944
  lastUpdate: spoolFields.last_update
2945
2945
  });
2946
+ const underlyingCoinType = parseStructTag2(parsedSpoolData.stakeType).typeParams;
2947
+ if (underlyingCoinType === NATIVE_USDC)
2948
+ return void 0;
2946
2949
  const marketCoinPrice = (coinPrices?.[coinName] ?? 0) * marketPool.conversionRate;
2947
2950
  const marketCoinDecimal = query.utils.getCoinDecimal(marketCoinName);
2948
2951
  const calculatedSpoolData = calculateSpoolData(
@@ -3270,6 +3273,8 @@ var queryBorrowIncentivePools = async (query, borrowIncentiveCoinNames = [
3270
3273
  const borrowIncentivePoolPoints = {};
3271
3274
  const parsedBorrowIncentivePoolData = parseOriginBorrowIncentivePoolData(pool);
3272
3275
  const poolCoinType = normalizeStructTag5(pool.pool_type.name);
3276
+ if (poolCoinType === NATIVE_USDC)
3277
+ continue;
3273
3278
  const poolCoinName = query.utils.parseCoinNameFromType(
3274
3279
  poolCoinType
3275
3280
  );