Skip to content

Commit

Permalink
remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Angelle committed Dec 5, 2023
1 parent a0a7719 commit 3443e09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions centrifuge-app/src/components/Portfolio/usePortfolio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export function useDailyPortfolioValue(address: string, rangeValue: number) {
const priceAtDate = getPriceAtDate(dailyTrancheStatesByTrancheId, trancheId, rangeValue, day, today)
if (!priceAtDate) return trancheValues

// TODO: remove this once we have the correct price -- https://github.com/centrifuge/pools-subql/issues/76
const price =
priceAtDate.toString().length === 10 || priceAtDate.toString().length === 9
? new Price(priceAtDate.mul(new BN(10 ** 9))).toDecimal()
Expand All @@ -93,8 +94,6 @@ export function useDailyPortfolioValue(address: string, rangeValue: number) {
}, Dec(0))
})

console.log(valueOfTranche)

return valueOfTranche.reduce(
(acc, cur) => ({
portfolioValue: acc.portfolioValue.add(cur),
Expand Down

0 comments on commit 3443e09

Please sign in to comment.