(undefined)
@@ -35,6 +39,7 @@ export function ResolutionPanel(props: {
const result = await resolveMarket({
outcome,
contractId: contract.id,
+ probabilityInt: prob,
}).then((r) => r.data as any)
console.log('resolved', outcome, 'result:', result)
@@ -82,8 +87,8 @@ export function ResolutionPanel(props: {
<>The pool will be returned to traders with no fees.>
) : outcome === 'MKT' ? (
<>
- Traders will be paid out at the current implied probability. You
- earn 1% of the pool.
+ Traders will be paid out at the probability you specify. You earn 1%
+ of the pool.
>
) : (
<>Resolving this market will immediately pay out traders.>
@@ -113,7 +118,20 @@ export function ResolutionPanel(props: {
}}
onSubmit={resolve}
>
- Are you sure you want to resolve this market?
+ {outcome === 'MKT' ? (
+ <>
+
+ What probability would you like to resolve the market to?
+
+
+
+ >
+ ) : (
+ Are you sure you want to resolve this market?
+ )}
)
diff --git a/web/components/yes-no-selector.tsx b/web/components/yes-no-selector.tsx
index 8073ffe4..91cf6358 100644
--- a/web/components/yes-no-selector.tsx
+++ b/web/components/yes-no-selector.tsx
@@ -1,6 +1,6 @@
import clsx from 'clsx'
import React from 'react'
-import { formatMoney } from '../lib/util/format'
+import { formatMoney } from '../../common/util/format'
import { Col } from './layout/col'
import { Row } from './layout/row'
@@ -78,7 +78,7 @@ export function YesNoCancelSelector(props: {
onClick={() => onSelect('MKT')}
className={clsx(btnClassName, 'btn-sm')}
>
- MKT
+ PROB