At FeeController:updateFeeType()
any account with the FEE_MANAGER_ROLE
can update the percentages for each fee type.
The problem is that some fee types won't be able to be re-set to a desired value != 100% due to the following check in the code:
The system does want to have some of the types smaller than 100% as it can be seen on constructor()::_initializeFeeTypes()
(called here) where fee types with indexes 6 and 7 are meant to have only a total sum of 2%. See comments here.
The FEE_MANAGER_ROLE
won't be able to properly update to desired values fee types of indexes 6 and 7, these ones are:
6 = Buy/Sell tax
7 = NFT Royalty fees
Exclude indexes 6 and 7 from the adding up to BASIS_POINTS
check.
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.