The updateFee function can remove the last (or only) fee from the fees array, resulting to an empty array.
In the updateFee function, there's no check on the index about to be removed if it is the only index in the array before removal.
The function removes the last fee, leaving the fees array empty.
Manual review
The function should maintain at least one fee in the array or handle the case of an empty fee array
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.