bets list: comment out expectation
This commit is contained in:
parent
3609255342
commit
d3fdd4cd1f
|
@ -283,9 +283,8 @@ export function MyBetsSummary(props: {
|
||||||
calculatePayout(contract, bet, 'NO')
|
calculatePayout(contract, bet, 'NO')
|
||||||
)
|
)
|
||||||
|
|
||||||
const p = getProbability(contract.totalShares)
|
// const p = getProbability(contract.totalShares)
|
||||||
|
// const expectation = p * yesWinnings + (1 - p) * noWinnings
|
||||||
const expectation = p * yesWinnings + (1 - p) * noWinnings
|
|
||||||
|
|
||||||
const marketWinnings = _.sumBy(excludeSales, (bet) =>
|
const marketWinnings = _.sumBy(excludeSales, (bet) =>
|
||||||
calculatePayout(contract, bet, 'MKT')
|
calculatePayout(contract, bet, 'MKT')
|
||||||
|
@ -337,14 +336,14 @@ export function MyBetsSummary(props: {
|
||||||
payoutCol
|
payoutCol
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<Col>
|
{/* <Col>
|
||||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||||
Expectation
|
Expectation
|
||||||
</div>
|
</div>
|
||||||
<div className="whitespace-nowrap">
|
<div className="whitespace-nowrap">
|
||||||
{formatMoney(expectation)}
|
{formatMoney(expectation)}
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col> */}
|
||||||
<Col>
|
<Col>
|
||||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||||
Payout if <YesLabel />
|
Payout if <YesLabel />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user