Skip to content

Commit

Permalink
fix deepbook
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Oct 31, 2024
1 parent eac2047 commit 5d396b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/deepbook-sui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function findClosestTvl(data, ts) {

// Sum all unique values together
let totalTvl = Object.values(aggregatedTvl).reduce((acc, current) => acc + current, 0);
if (+totalTvl<0) return 0

return totalTvl;
}

0 comments on commit 5d396b4

Please sign in to comment.