bets wording

This commit is contained in:
mantikoros 2021-12-16 15:35:06 -06:00
parent 06f1657a4c
commit 985621982b
2 changed files with 7 additions and 5 deletions

View File

@ -135,14 +135,16 @@ export function BetPanel(props: { contract: Contract; className?: string }) {
<div className="mt-3 mb-1 text-sm text-gray-400">Remaining balance</div> <div className="mt-3 mb-1 text-sm text-gray-400">Remaining balance</div>
<div>{formatMoney(remainingBalance > 0 ? remainingBalance : 0)}</div> <div>{formatMoney(remainingBalance > 0 ? remainingBalance : 0)}</div>
<div className="mt-2 mb-1 text-sm text-gray-400">Implied chance</div> <div className="mt-2 mb-1 text-sm text-gray-400">Implied probability</div>
<Row> <Row>
<div>{formatPercent(initialProb)}</div> <div>{formatPercent(initialProb)}</div>
<div className="mx-2"></div> <div className="mx-2"></div>
<div>{formatPercent(resultProb)}</div> <div>{formatPercent(resultProb)}</div>
</Row> </Row>
<div className="mt-2 mb-1 text-sm text-gray-400">Max payout (estimated)</div> <div className="mt-2 mb-1 text-sm text-gray-400">
Max payout (estimated)
</div>
<div> <div>
{formatMoney(estimatedWinnings)} &nbsp; (+{estimatedReturnPercent}) {formatMoney(estimatedWinnings)} &nbsp; (+{estimatedReturnPercent})
</div> </div>

View File

@ -174,7 +174,7 @@ export function MyBetsSummary(props: {
return ( return (
<Row className={clsx('gap-8', className)}> <Row className={clsx('gap-8', className)}>
<Col> <Col>
<div className="text-sm text-gray-500">Total bet</div> <div className="text-sm text-gray-500">Total bets</div>
<div>{formatMoney(betsTotal)}</div> <div>{formatMoney(betsTotal)}</div>
</Col> </Col>
{resolution ? ( {resolution ? (
@ -188,13 +188,13 @@ export function MyBetsSummary(props: {
<> <>
<Col> <Col>
<div className="text-sm text-gray-500"> <div className="text-sm text-gray-500">
If <YesLabel /> Payout if <YesLabel />
</div> </div>
<div>{formatMoney(yesWinnings)}</div> <div>{formatMoney(yesWinnings)}</div>
</Col> </Col>
<Col> <Col>
<div className="text-sm text-gray-500"> <div className="text-sm text-gray-500">
If <NoLabel /> Payout if <NoLabel />
</div> </div>
<div>{formatMoney(noWinnings)}</div> <div>{formatMoney(noWinnings)}</div>
</Col> </Col>