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