dpm fix multi resolution (#461)

* fix dpm prob

* refactoring

* remove newline

* refactoring
This commit is contained in:
TrueMilli 2022-06-08 23:06:14 +02:00 committed by GitHub
parent 88bf22622d
commit b231d0968f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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