diff --git a/functions/src/place-bet.ts b/functions/src/place-bet.ts index 7999325d..bc47a6b3 100644 --- a/functions/src/place-bet.ts +++ b/functions/src/place-bet.ts @@ -82,6 +82,7 @@ const getNewBetInfo = ( : (amount * yesPot ** 2) / (noPot ** 2 + amount * noPot) const { YES: yesWeight, NO: noWeight } = contract.dpmWeights + || { YES: 0, NO: 0 } // only nesc for old contracts const newDpmWeights = outcome === 'YES'