Fee distribution parameters can be modified between fee collection and distribution, leading to inconsistent and potentially incorrect fee allocation.
The FeeCollector.sol
contract allows updating feeTypes
(distribution parameters) via updateFeeType
. If feeTypes
are changed after fees are collected using collectFee
but before distributeCollectedFees
is executed, the distribution in distributeCollectedFees
will use the updated feeTypes
, not the feeTypes
active at the time of collection. This discrepancy can cause fees to be distributed based on unintended parameters.
** Code Snippets:**
Incorrect fee distribution among veRAAC holders, burn address, repair fund, and treasury. This can lead to:
Loss of funds for intended recipients.
Unfair reward distribution to veRAAC holders.
Protocol governance issues due to misaligned incentives.
Manual code review.
Ensure fee distribution parameters used in distributeCollectedFees
are consistent with those in place when fees were collected. Consider:
Restrict Updates During Collection Period: Implement a mechanism to prevent feeType
updates between the start of a fee collection period and the corresponding distribution.
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.