In feeCollector.sol function CollectFee is not enforced anywhere so the proper collection and accounting will not happen .
collectFee function purpose is to collect fees for the protocol and its stakers , but its not enforced anywhere .
feeCollector.sol is dependant on this function to record the type and amount of fees through _updateCollectedFees for distribution of rewards for users and sending it to the different types of funds that would not be feasable as is not used anywhere .
Impact
not enforcing the function anywhere to properly account for distribution of fee amount to correspoding fee type will render the functionality of FeeCollector.sol useless .
the only reference i see for sending the tax amount to feeCollector.sol is through RaacToken.sol function burn and function _update where both are sending the tax Directly to feeCollector not using the CollectFee to account properly the received amount of tax for distribution .
https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/core/tokens/RAACToken.sol#L80-L87,
https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/core/tokens/RAACToken.sol#L185-L205.
manual review
call CollectFee function when tax is applied and needs to be collected instead of Feecollector address .
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.