From 55aa2db553e8469d8384da15ff697c6f2a6f3d34 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Thu, 3 Feb 2022 17:07:30 -0600 Subject: [PATCH] resolution panel creator fee --- web/components/resolution-panel.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/web/components/resolution-panel.tsx b/web/components/resolution-panel.tsx index 1a409f7e..a31072c4 100644 --- a/web/components/resolution-panel.tsx +++ b/web/components/resolution-panel.tsx @@ -11,6 +11,7 @@ import { ConfirmationButton as ConfirmationButton } from './confirmation-button' import { resolveMarket } from '../lib/firebase/api-call' import { ProbabilitySelector } from './probability-selector' import { getProbability } from '../../common/calculate' +import { CREATOR_FEE } from '../../common/fees' export function ResolutionPanel(props: { creator: User @@ -79,16 +80,20 @@ export function ResolutionPanel(props: {
{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' ? ( - <>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' ? ( <>The pool will be returned to traders with no fees. ) : outcome === 'MKT' ? ( <> - Traders will be paid out at the probability you specify. You earn 1% - of the pool. + Traders will be paid out at the probability you specify. You earn{' '} + {CREATOR_FEE * 100}%. ) : ( <>Resolving this market will immediately pay out traders.