feeTypes[6] and feeTypes[7] can't be updated since their sum is not expected to go above 2%.
Upon initialization, 8 fee types are declared. The first 6 all consist of different fee shares which sum to a total of 100%, expressed in BPS. Fee types [6] and [7], namely Swap Tax and NFT Royalties, work differently as they sum only to a total of 2%.
However, the updateFeeType method has a strict require check that the sum of all parts should equal to BASIS_POINTS (10_000), meaning that these 2 specific fee types can't be updated as they are not designed to have a sum greater than 2%.
Unexpected behaviour, broken admin functionality
Have the current updateFeeType flow only for feeType <= 5 and design a different one for feeType > 5 that compares it to 2% instead of 100%.
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.