@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.mjs CHANGED
@@ -2676,12 +2676,16 @@ var getTotalValueLocked = async (query, indexer = false) => {
2676
2676
  let supplyValue = BigNumber3(0);
2677
2677
  let borrowValue = BigNumber3(0);
2678
2678
  if (indexer) {
2679
- const tvl2 = await query.indexer.getTotalValueLocked();
2680
- return {
2681
- supplyValue: tvl2.supplyValue,
2682
- borrowValue: tvl2.borrowValue,
2683
- totalValue: tvl2.totalValue
2679
+ const tvlIndexer = await query.indexer.getTotalValueLocked();
2680
+ const tvl2 = {
2681
+ supplyValue: tvlIndexer.supplyValue,
2682
+ supplyValueChangeRatio: tvlIndexer.supplyValueChangeRatio,
2683
+ borrowValue: tvlIndexer.borrowValue,
2684
+ borrowValueChangeRatio: tvlIndexer.borrowValueChangeRatio,
2685
+ totalValue: tvlIndexer.totalValue,
2686
+ totalValueChangeRatio: tvlIndexer.totalValueChangeRatio
2684
2687
  };
2688
+ return tvl2;
2685
2689
  }
2686
2690
  for (const pool of Object.values(market.pools)) {
2687
2691
  supplyValue = supplyValue.plus(