Type |
{typeDisplay} |
Payout |
{mechanism === 'cpmm-1' ? (
<>
Fixed{' '}
>
) : (
<>
Parimutuel{' '}
>
)}
|
Market created |
{formatTime(createdTime)} |
{closeTime && (
Market close{closeTime > Date.now() ? 's' : 'd'} |
{formatTime(closeTime)} |
)}
{resolutionTime && (
Market resolved |
{formatTime(resolutionTime)} |
)}
Volume
|
{formatMoney(contract.volume)} |
{capitalize(BETTORS)} |
{uniqueBettorCount ?? '0'} |
Elasticity
|
{formatPercent(elasticity)} |
Liquidity subsidies |
{mechanism === 'cpmm-1'
? formatMoney(contract.totalLiquidity)
: formatMoney(100)}
|
Pool |
{mechanism === 'cpmm-1' && outcomeType === 'BINARY'
? `${Math.round(pool.YES)} YES, ${Math.round(pool.NO)} NO`
: mechanism === 'cpmm-1' && outcomeType === 'PSEUDO_NUMERIC'
? `${Math.round(pool.YES)} HIGHER, ${Math.round(
pool.NO
)} LOWER`
: contractPool(contract)}
|
{/* Show a path to Firebase if user is an admin, or we're on localhost */}
{(isAdmin || isDev) && (
[ADMIN] Firestore |
Console link
|
)}
{isAdmin && (
[ADMIN] Featured |
|
)}
{user && (
{isAdmin ? '[ADMIN]' : ''} Unlisted |
updateContract(id, {
visibility: b ? 'unlisted' : 'public',
unlistedById: b ? user.id : '',
})
}
/>
|
)}