add resolutionProbability to LiteMarket (#546)
This commit is contained in:
parent
237a6c4d2a
commit
4ea7b6692a
|
@ -33,6 +33,7 @@ export type Contract<T extends AnyContractType = AnyContractType> = {
|
|||
isResolved: boolean
|
||||
resolutionTime?: number // When the contract creator resolved the market
|
||||
resolution?: string
|
||||
resolutionProbability?: number,
|
||||
|
||||
closeEmailsSent?: number
|
||||
|
||||
|
|
|
@ -127,6 +127,7 @@ Requires no authorization.
|
|||
isResolved: boolean
|
||||
resolutionTime?: number
|
||||
resolution?: string
|
||||
resolutionProbability?: number // Used for BINARY markets resolved to MKT
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ export type LiteMarket = {
|
|||
isResolved: boolean
|
||||
resolution?: string
|
||||
resolutionTime?: number
|
||||
resolutionProbability?: number
|
||||
}
|
||||
|
||||
export type ApiAnswer = Answer & {
|
||||
|
@ -73,6 +74,7 @@ export function toLiteMarket(contract: Contract): LiteMarket {
|
|||
isResolved,
|
||||
resolution,
|
||||
resolutionTime,
|
||||
resolutionProbability,
|
||||
} = contract
|
||||
|
||||
const { p, totalLiquidity } = contract as any
|
||||
|
@ -106,6 +108,7 @@ export function toLiteMarket(contract: Contract): LiteMarket {
|
|||
isResolved,
|
||||
resolution,
|
||||
resolutionTime,
|
||||
resolutionProbability,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user