FeeCollector.sol had a total of eight feeTypes and could be updated by calling the function updateFeeTypewhich checks for input validation and other checks as well and one of these checks will not allow to update the last two feeTypes.
There are eight feeTypes in a FeeCollector.sol contract and the last two are ( Buy/Sell Swap Tax ) and ( NFT Royalty Fees ). Except these two feeTypes all other types cover BASIS_POINTS which is 100 percent and these two feeTypes only covers 2 percent each.
Now if protocol needs to update these two feeTypesthen they had to update it in a way that it also covers 100 percent of BASIS_POINTSwhich is not intended and won't allow to increase/decrease a little percentage which is not expected.
The code and check that will not allow such updation of the last two fees is as follows:
LINK TO CODE:
Won't let protocol increase/decrease a little percentage of the last two feeTypes. But enforces to increase in a way that it will cover 100 percent.
Manual review
Specific this check for all other feeTypes except for the last two types.
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.