@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.js CHANGED
@@ -3800,12 +3800,15 @@ var getObligationAccounts = async (query, ownerAddress, indexer = false) => {
3800
3800
  return obligationAccounts;
3801
3801
  };
3802
3802
  var getObligationAccount = async (query, obligationId, ownerAddress, indexer = false, market, coinPrices, coinAmounts) => {
3803
+ const coinNames = Array.from(
3804
+ /* @__PURE__ */ new Set([...SUPPORT_POOLS, ...SUPPORT_COLLATERALS])
3805
+ );
3803
3806
  const collateralAssetCoinNames = [
3804
3807
  ...SUPPORT_COLLATERALS
3805
3808
  ];
3806
3809
  market = market ?? await query.queryMarket({ indexer });
3807
3810
  coinPrices = coinPrices ?? await query.getAllCoinPrices({ marketPools: market.pools });
3808
- coinAmounts = coinAmounts || await query.getCoinAmounts(collateralAssetCoinNames, ownerAddress);
3811
+ coinAmounts = coinAmounts || await query.getCoinAmounts(coinNames, ownerAddress);
3809
3812
  const [obligationQuery, borrowIncentivePools, borrowIncentiveAccounts] = await Promise.all([
3810
3813
  query.queryObligation(obligationId),
3811
3814
  query.getBorrowIncentivePools(void 0, {