Closed code423n4 closed 2 years ago
Orders with too many assets or too many whitelisted can remain impossible to fulfill due to block gas limit Some orders might not get fulfilled if they have too many assets or too many whitelisted addresses. As the number of assets or whitelisted addresses increase, it is possible to reach block gas limit inside the loops, hence there would be DOS on the order. This can cause naive users to waste gas trying to fulfill orders.
Make sure the frontend does not accept creating orders with greater than certain amount of assets and whitelisted addresses.
dup of #227
Judge has assessed an item in Issue #190 as Medium risk. The relevant finding follows: