create liquidity provision even if no ante bet
This commit is contained in:
parent
87747d8fcb
commit
dd9f4ba81c
|
@ -137,6 +137,7 @@ export const createContract = functions
|
||||||
)
|
)
|
||||||
|
|
||||||
await betDoc.set(bet)
|
await betDoc.set(bet)
|
||||||
|
}
|
||||||
|
|
||||||
const liquidityDoc = firestore
|
const liquidityDoc = firestore
|
||||||
.collection(`contracts/${contract.id}/liquidity`)
|
.collection(`contracts/${contract.id}/liquidity`)
|
||||||
|
@ -150,7 +151,6 @@ export const createContract = functions
|
||||||
)
|
)
|
||||||
|
|
||||||
await liquidityDoc.set(lp)
|
await liquidityDoc.set(lp)
|
||||||
}
|
|
||||||
} else if (outcomeType === 'FREE_RESPONSE') {
|
} else if (outcomeType === 'FREE_RESPONSE') {
|
||||||
const noneAnswerDoc = firestore
|
const noneAnswerDoc = firestore
|
||||||
.collection(`contracts/${contract.id}/answers`)
|
.collection(`contracts/${contract.id}/answers`)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user