Tweak check for matching with pool

This commit is contained in:
James Grugett 2022-07-10 13:24:54 -05:00
parent 80ae551ca9
commit 4de22acb3e

View File

@ -66,8 +66,8 @@ const computeFill = (
if (
!matchedBet ||
(outcome === 'YES'
? prob < matchedBet.limitProb
: prob > matchedBet.limitProb)
? !floatingGreaterEqual(prob, matchedBet.limitProb)
: !floatingLesserEqual(prob, matchedBet.limitProb))
) {
// Fill from pool.
const limit = !matchedBet