From 463338efc6fa9173a77448f8a791a241741e23ed Mon Sep 17 00:00:00 2001 From: Milli Date: Sat, 4 Jun 2022 21:03:17 +0200 Subject: [PATCH] Added auto resolution to LiteMarket --- web/pages/api/v0/_types.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/pages/api/v0/_types.ts b/web/pages/api/v0/_types.ts index 9f043c80..4122aabc 100644 --- a/web/pages/api/v0/_types.ts +++ b/web/pages/api/v0/_types.ts @@ -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,