resolve market: fix probability bounds

This commit is contained in:
mantikoros 2022-02-12 00:19:45 -06:00
parent 7338bdd47a
commit 2d66be5208

View File

@ -30,7 +30,9 @@ export const resolveMarket = functions
if ( if (
probabilityInt !== undefined && probabilityInt !== undefined &&
(probabilityInt < 1 || probabilityInt > 99 || !isFinite(probabilityInt)) (probabilityInt < 0 ||
probabilityInt > 100 ||
!isFinite(probabilityInt))
) )
return { status: 'error', message: 'Invalid probability' } return { status: 'error', message: 'Invalid probability' }