Switch profit in bets tab to match user page
This commit is contained in:
parent
3c9108de0d
commit
b5d8acfef3
|
@ -157,9 +157,7 @@ export function BetsList(props: {
|
||||||
(c) => contractsMetrics[c.id].netPayout
|
(c) => contractsMetrics[c.id].netPayout
|
||||||
)
|
)
|
||||||
|
|
||||||
const totalPortfolio = currentNetInvestment + user.balance
|
const totalPnl = user.profitCached.allTime
|
||||||
|
|
||||||
const totalPnl = totalPortfolio - user.totalDeposits
|
|
||||||
const totalProfitPercent = (totalPnl / user.totalDeposits) * 100
|
const totalProfitPercent = (totalPnl / user.totalDeposits) * 100
|
||||||
const investedProfitPercent =
|
const investedProfitPercent =
|
||||||
((currentBetsValue - currentInvested) / (currentInvested + 0.1)) * 100
|
((currentBetsValue - currentInvested) / (currentInvested + 0.1)) * 100
|
||||||
|
|
Loading…
Reference in New Issue
Block a user