@scallop-io/sui-scallop-sdk 0.46.68 → 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.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/queries/spoolQuery.ts +6 -2
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(
|