info table
This commit is contained in:
parent
f5d7db53d9
commit
b082c09ab1
|
@ -54,6 +54,7 @@ export function ContractInfoDialog(props: {
|
|||
outcomeType,
|
||||
id,
|
||||
elasticity,
|
||||
pool,
|
||||
} = contract
|
||||
|
||||
const typeDisplay =
|
||||
|
@ -171,10 +172,25 @@ export function ContractInfoDialog(props: {
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Liquidity subsidies</td>
|
||||
<td>
|
||||
{mechanism === 'cpmm-1' ? 'Liquidity pool' : 'Betting pool'}
|
||||
{mechanism === 'cpmm-1'
|
||||
? formatMoney(contract.totalLiquidity)
|
||||
: formatMoney(100)}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Pool</td>
|
||||
<td>
|
||||
{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)}
|
||||
</td>
|
||||
<td>{contractPool(contract)}</td>
|
||||
</tr>
|
||||
|
||||
{/* Show a path to Firebase if user is an admin, or we're on localhost */}
|
||||
|
|
Loading…
Reference in New Issue
Block a user