From 411a73900491b9b8d68f372057e32485b49ff306 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Thu, 13 Jan 2022 10:40:08 -0600 Subject: [PATCH] ante bets created at same time as contract --- common/antes.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/antes.ts b/common/antes.ts index eb51b691..0b7cb1b3 100644 --- a/common/antes.ts +++ b/common/antes.ts @@ -30,6 +30,8 @@ export function getAnteBets( const p = getProbability(contract.totalShares) const ante = contract.totalBets.YES + contract.totalBets.NO + const { createdTime } = contract + const yesBet: Bet = { id: yesAnteId, userId: creator.id, @@ -39,7 +41,7 @@ export function getAnteBets( outcome: 'YES', probBefore: p, probAfter: p, - createdTime: Date.now(), + createdTime, } const noBet: Bet = { @@ -51,7 +53,7 @@ export function getAnteBets( outcome: 'NO', probBefore: p, probAfter: p, - createdTime: Date.now(), + createdTime, } return { yesBet, noBet }