dpm fix multi resolution (#461)
* fix dpm prob * refactoring * remove newline * refactoring
This commit is contained in:
parent
88bf22622d
commit
b231d0968f
|
@ -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 totalPool = sum(Object.values(pool))
|
||||||
const winnings = poolFrac * totalPool
|
const winnings = poolFrac * totalPool
|
||||||
|
|
Loading…
Reference in New Issue
Block a user