@scallop-io/sui-scallop-sdk 0.44.9 → 0.44.10

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
@@ -2740,12 +2740,16 @@ var getTotalValueLocked = async (query, indexer = false) => {
2740
2740
  let supplyValue = (0, import_bignumber3.default)(0);
2741
2741
  let borrowValue = (0, import_bignumber3.default)(0);
2742
2742
  if (indexer) {
2743
- const tvl2 = await query.indexer.getTotalValueLocked();
2744
- return {
2745
- supplyValue: tvl2.supplyValue,
2746
- borrowValue: tvl2.borrowValue,
2747
- totalValue: tvl2.totalValue
2743
+ const tvlIndexer = await query.indexer.getTotalValueLocked();
2744
+ const tvl2 = {
2745
+ supplyValue: tvlIndexer.supplyValue,
2746
+ supplyValueChangeRatio: tvlIndexer.supplyValueChangeRatio,
2747
+ borrowValue: tvlIndexer.borrowValue,
2748
+ borrowValueChangeRatio: tvlIndexer.borrowValueChangeRatio,
2749
+ totalValue: tvlIndexer.totalValue,
2750
+ totalValueChangeRatio: tvlIndexer.totalValueChangeRatio
2748
2751
  };
2752
+ return tvl2;
2749
2753
  }
2750
2754
  for (const pool of Object.values(market.pools)) {
2751
2755
  supplyValue = supplyValue.plus(