@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/package.json
CHANGED
|
@@ -673,12 +673,16 @@ export const getTotalValueLocked = async (
|
|
|
673
673
|
let borrowValue = BigNumber(0);
|
|
674
674
|
|
|
675
675
|
if (indexer) {
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
supplyValue:
|
|
679
|
-
|
|
680
|
-
|
|
676
|
+
const tvlIndexer = await query.indexer.getTotalValueLocked();
|
|
677
|
+
const tvl: TotalValueLocked = {
|
|
678
|
+
supplyValue: tvlIndexer.supplyValue,
|
|
679
|
+
supplyValueChangeRatio: tvlIndexer.supplyValueChangeRatio,
|
|
680
|
+
borrowValue: tvlIndexer.borrowValue,
|
|
681
|
+
borrowValueChangeRatio: tvlIndexer.borrowValueChangeRatio,
|
|
682
|
+
totalValue: tvlIndexer.totalValue,
|
|
683
|
+
totalValueChangeRatio: tvlIndexer.totalValueChangeRatio,
|
|
681
684
|
};
|
|
685
|
+
return tvl;
|
|
682
686
|
}
|
|
683
687
|
|
|
684
688
|
for (const pool of Object.values(market.pools)) {
|