bets list: comment out expectation

This commit is contained in:
mantikoros 2022-02-17 16:49:00 -06:00
parent 3609255342
commit d3fdd4cd1f

View File

@ -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 />