@scallop-io/sui-scallop-sdk 1.4.11 → 1.4.12

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
@@ -3711,12 +3711,15 @@ var getObligationAccounts = async (query, ownerAddress, indexer = false) => {
3711
3711
  return obligationAccounts;
3712
3712
  };
3713
3713
  var getObligationAccount = async (query, obligationId, ownerAddress, indexer = false, market, coinPrices, coinAmounts) => {
3714
+ const coinNames = Array.from(
3715
+ /* @__PURE__ */ new Set([...SUPPORT_POOLS, ...SUPPORT_COLLATERALS])
3716
+ );
3714
3717
  const collateralAssetCoinNames = [
3715
3718
  ...SUPPORT_COLLATERALS
3716
3719
  ];
3717
3720
  market = market ?? await query.queryMarket({ indexer });
3718
3721
  coinPrices = coinPrices ?? await query.getAllCoinPrices({ marketPools: market.pools });
3719
- coinAmounts = coinAmounts || await query.getCoinAmounts(collateralAssetCoinNames, ownerAddress);
3722
+ coinAmounts = coinAmounts || await query.getCoinAmounts(coinNames, ownerAddress);
3720
3723
  const [obligationQuery, borrowIncentivePools, borrowIncentiveAccounts] = await Promise.all([
3721
3724
  query.queryObligation(obligationId),
3722
3725
  query.getBorrowIncentivePools(void 0, {