The sum of all shares of a feeType should be equal to BASIS_POINTS. However, the feeTypes of swap tax and NFT royalty fees are incorrectly set when initializing. As a result, the calculation for reward distribution is incorrect.
The sum of all shares of a feeType should be equal to BASIS_POINTS as you can see in the following code.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/collectors/FeeCollector.sol#L225-L227
However, the feeTypes of swap tax and NFT royalty fees are incorrectly set when initializing.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/collectors/FeeCollector.sol#L380-L393
The sum of veRAACShare, burnShare, repairShare, and treasuryShare for feeTypes[6] and feeTypes[7] is 2000, which is much smaller than BASIS_POINTS(10000).
As you can see in the following code, the remainder is added to treasuryShare. This means that the actual treasuryShare is 85%, which is much larger than expected.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/collectors/FeeCollector.sol#L431-L457
In addition, the numbers are inconsistent with the comments.
For example, the each shares corresponding to 0.5% and 1% should be 50 and 100. However, they are incorrectly set as 500 and 1000.
Incorrect fee distribution.
The shares for feeTypes[6] and feeTypes[7] should be set correctly.
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.