numeric bet ante provided by house
This commit is contained in:
parent
45f92379bc
commit
9076b625e3
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user