Added auto resolution to LiteMarket
This commit is contained in:
parent
bef543a7c1
commit
463338efc6
|
@ -1,7 +1,7 @@
|
|||
import { Bet } from 'common/bet'
|
||||
import { getProbability } from 'common/calculate'
|
||||
import { Comment } from 'common/comment'
|
||||
import { Contract } from 'common/contract'
|
||||
import { Contract, resolution } from 'common/contract'
|
||||
import { removeUndefinedProps } from 'common/util/object'
|
||||
|
||||
export type LiteMarket = {
|
||||
|
@ -31,6 +31,9 @@ export type LiteMarket = {
|
|||
volume7Days: number
|
||||
volume24Hours: number
|
||||
|
||||
autoResolution: resolution
|
||||
autoResolutionTime: number
|
||||
|
||||
isResolved: boolean
|
||||
resolution?: string
|
||||
resolutionTime?: number
|
||||
|
@ -62,6 +65,8 @@ export function toLiteMarket(contract: Contract): LiteMarket {
|
|||
mechanism,
|
||||
volume7Days,
|
||||
volume24Hours,
|
||||
autoResolution,
|
||||
autoResolutionTime,
|
||||
isResolved,
|
||||
resolution,
|
||||
resolutionTime,
|
||||
|
@ -94,6 +99,8 @@ export function toLiteMarket(contract: Contract): LiteMarket {
|
|||
mechanism,
|
||||
volume7Days,
|
||||
volume24Hours,
|
||||
autoResolution,
|
||||
autoResolutionTime,
|
||||
isResolved,
|
||||
resolution,
|
||||
resolutionTime,
|
||||
|
|
Loading…
Reference in New Issue
Block a user