numeric bet ante provided by house

This commit is contained in:
mantikoros 2022-05-28 13:43:57 -05:00
parent 45f92379bc
commit 9076b625e3
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ export function getFreeAnswerAnte(
}
export function getNumericAnte(
creator: User,
anteBettorId: string,
contract: FullContract<DPM, Numeric>,
ante: number,
newBetId: string
@ -136,7 +136,7 @@ export function getNumericAnte(
const anteBet: NumericBet = {
id: newBetId,
userId: creator.id,
userId: anteBettorId,
contractId: contract.id,
amount: ante,
allBetAmounts,

View File

@ -170,7 +170,7 @@ export const createContract = newEndpoint(['POST'], async (req, [user, _]) => {
.doc()
const anteBet = getNumericAnte(
user,
providerId,
contract as FullContract<DPM, Numeric>,
ante,
anteBetDoc.id