Create answer bet has isAnte: true
This commit is contained in:
parent
78b86a7c28
commit
68428c76a7
|
@ -97,7 +97,7 @@ export const createAnswer = functions.runWith({ minInstances: 1 }).https.onCall(
|
|||
const { newBet, newPool, newTotalShares, newTotalBets, newBalance } =
|
||||
getNewMultiBetInfo(user, answerId, amount, contract, newBetDoc.id)
|
||||
|
||||
transaction.create(newBetDoc, newBet)
|
||||
transaction.create(newBetDoc, { ...newBet, isAnte: true })
|
||||
transaction.update(contractDoc, {
|
||||
pool: newPool,
|
||||
totalShares: newTotalShares,
|
||||
|
|
|
@ -23,7 +23,6 @@ import {
|
|||
import { Row } from './layout/row'
|
||||
import { UserLink } from './user-page'
|
||||
import {
|
||||
calculateCancelPayout,
|
||||
calculatePayout,
|
||||
calculateSaleAmount,
|
||||
getProbability,
|
||||
|
|
Loading…
Reference in New Issue
Block a user