ship in LibShipping.sol could be DOS because field can be only added and can't be removed.
setRoutes_siloAndBarnAndFields in ShipmentDeployer.sol is as follows:
We can see that shipmentRoutes.length = 2 + fieldCount.
ship in LibShipping.sol call getShipmentPlans. getShipmentPlans will loop 2+fieldCount times.
ship in LibShipping.sol call getBeansFromPoints. getBeansFromPoints have one for loop.
And ship in LibShipping.sol includes three for loops.
In conclusion, ship will loop many times.
In FieldFacet.sol:
So field can be only added. As field count increases, ship could be DOS because of so many loops. The gas cost also can be huge.
Can't ship in some case.
manual
Restrict the number of field.
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.