diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index 7d2b1e5a..064be0be 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -20,7 +20,13 @@ import { APIError, placeBet } from 'web/lib/firebase/api' import { sellShares } from 'web/lib/firebase/api' import { AmountInput, BuyAmountInput } from './amount-input' import { InfoTooltip } from './info-tooltip' -import { BinaryOutcomeLabel, HigherLabel, LowerLabel } from './outcome-label' +import { + BinaryOutcomeLabel, + HigherLabel, + LowerLabel, + NoLabel, + YesLabel, +} from './outcome-label' import { getProbability } from 'common/calculate' import { useFocus } from 'web/hooks/use-focus' import { useUserContractBets } from 'web/hooks/use-user-bets' @@ -366,12 +372,12 @@ function LimitOrderPanel(props: { (highLimitProb !== undefined && (highLimitProb <= 0 || highLimitProb >= 100)) - const initialLow = initialProb * 0.9 - const initialHigh = initialProb + (1 - initialProb) * 0.1 - const lowPlaceholder = Math.round( + const initialLow = initialProb * 0.85 + const initialHigh = initialProb + (1 - initialProb) * 0.15 + const lowPlaceholder = Math.floor( isPseudoNumeric ? getMappedValue(contract)(initialLow) : initialLow * 100 ).toString() - const highPlaceholder = Math.round( + const highPlaceholder = Math.ceil( isPseudoNumeric ? getMappedValue(contract)(initialHigh) : initialHigh * 100 ).toString() @@ -514,14 +520,11 @@ function LimitOrderPanel(props: { return (