diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 3be39678..735d314e 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -422,9 +422,10 @@ export function ContractBetsTable(props: { - {isResolved ? <>Payout : <>Sale price} Outcome Amount + {isResolved ? <>Payout : <>Sale price} + Payout if chosen Probability Shares Date @@ -475,6 +476,8 @@ function BetRow(props: { bet: Bet; contract: Contract; saleBet?: Bet }) { ) ) + const payoutIfChosen = calculatePayout(contract, bet, bet.outcome) + return ( @@ -482,11 +485,12 @@ function BetRow(props: { bet: Bet; contract: Contract; saleBet?: Bet }) { )} - {saleDisplay} {formatMoney(amount)} + {saleDisplay} + {formatMoney(payoutIfChosen)} {formatPercent(probBefore)} → {formatPercent(probAfter)} @@ -503,6 +507,7 @@ function SellButton(props: { contract: Contract; bet: Bet }) { }, []) const { contract, bet } = props + const isBinary = contract.outcomeType === 'BINARY' const [isSubmitting, setIsSubmitting] = useState(false) const initialProb = getOutcomeProbability( @@ -541,8 +546,9 @@ function SellButton(props: { contract: Contract; bet: Bet }) {
- Implied probability: {formatPercent(initialProb)} →{' '} - {formatPercent(outcomeProb)} + ({isBinary ? 'Updated' : }{' '} + probability: {formatPercent(initialProb)} → {formatPercent(outcomeProb)} + )
)