Skip to content

Commit 87ead2c

Browse files
committed
bugfix
1 parent 80373a2 commit 87ead2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/phoenix-hub/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function tvl() {
66
const tickers = await utils.fetchURL("https://api-phoenix-v2.decentrio.ventures/tickers");
77

88
// Sum up the tvl
9-
const totalTVL = tickers.data.reduce((acc, t) => acc + t.liquidity_in_usd, 0);
9+
const totalTVL = tickers.data.reduce((acc, t) => acc + (t.liquidity_in_usd > 0 ? t.liquidity_in_usd : 0), 0);
1010
return toUSDTBalances(totalTVL);
1111
}
1212

0 commit comments

Comments
 (0)