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

View File

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