diff --git a/common/calculate-dpm.ts b/common/calculate-dpm.ts index 4d31bf3b..7aef1de5 100644 --- a/common/calculate-dpm.ts +++ b/common/calculate-dpm.ts @@ -363,7 +363,7 @@ function calculateMktDpmPayout(contract: DPMContract, bet: Bet) { ) } ) - : (probs[outcome] * shares) / weightedShareTotal + : (probs[outcome] * shares) / totalShares[outcome] const totalPool = sum(Object.values(pool)) const winnings = poolFrac * totalPool