resolve market: fix probability bounds
This commit is contained in:
parent
7338bdd47a
commit
2d66be5208
|
@ -30,7 +30,9 @@ export const resolveMarket = functions
|
|||
|
||||
if (
|
||||
probabilityInt !== undefined &&
|
||||
(probabilityInt < 1 || probabilityInt > 99 || !isFinite(probabilityInt))
|
||||
(probabilityInt < 0 ||
|
||||
probabilityInt > 100 ||
|
||||
!isFinite(probabilityInt))
|
||||
)
|
||||
return { status: 'error', message: 'Invalid probability' }
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user