resolution panel creator fee
This commit is contained in:
parent
4294481b5b
commit
55aa2db553
|
@ -11,6 +11,7 @@ import { ConfirmationButton as ConfirmationButton } from './confirmation-button'
|
||||||
import { resolveMarket } from '../lib/firebase/api-call'
|
import { resolveMarket } from '../lib/firebase/api-call'
|
||||||
import { ProbabilitySelector } from './probability-selector'
|
import { ProbabilitySelector } from './probability-selector'
|
||||||
import { getProbability } from '../../common/calculate'
|
import { getProbability } from '../../common/calculate'
|
||||||
|
import { CREATOR_FEE } from '../../common/fees'
|
||||||
|
|
||||||
export function ResolutionPanel(props: {
|
export function ResolutionPanel(props: {
|
||||||
creator: User
|
creator: User
|
||||||
|
@ -79,16 +80,20 @@ export function ResolutionPanel(props: {
|
||||||
<div>
|
<div>
|
||||||
{outcome === 'YES' ? (
|
{outcome === 'YES' ? (
|
||||||
<>
|
<>
|
||||||
Winnings will be paid out to YES bettors. You earn 1% of the pool.
|
Winnings will be paid out to YES bettors. You earn{' '}
|
||||||
|
{CREATOR_FEE * 100}%.
|
||||||
</>
|
</>
|
||||||
) : outcome === 'NO' ? (
|
) : outcome === 'NO' ? (
|
||||||
<>Winnings will be paid out to NO bettors. You earn 1% of the pool.</>
|
<>
|
||||||
|
Winnings will be paid out to NO bettors. You earn{' '}
|
||||||
|
{CREATOR_FEE * 100}%.
|
||||||
|
</>
|
||||||
) : outcome === 'CANCEL' ? (
|
) : outcome === 'CANCEL' ? (
|
||||||
<>The pool will be returned to traders with no fees.</>
|
<>The pool will be returned to traders with no fees.</>
|
||||||
) : outcome === 'MKT' ? (
|
) : outcome === 'MKT' ? (
|
||||||
<>
|
<>
|
||||||
Traders will be paid out at the probability you specify. You earn 1%
|
Traders will be paid out at the probability you specify. You earn{' '}
|
||||||
of the pool.
|
{CREATOR_FEE * 100}%.
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>Resolving this market will immediately pay out traders.</>
|
<>Resolving this market will immediately pay out traders.</>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user