placeBets: handle old contracts
This commit is contained in:
parent
f32933f668
commit
15b11d30a3
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user