Invalid orderIndex
input could result in a non-informative error
In TokenDivider::buyOrder
, there are no validations for the value of the orderIndex
argument. As a result, the passed orderIndex can be > s_userToSellOrders.length
, which would result in an Out of bound error.
Non-informative error will be returned to the caller.
none
Make an explicit validation of orderIndex and revert with a custom error.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.