In FeeCollector.sol, the fee allocation values for Buy/Sell Swap Tax and NFT Royalty Fees are incorrectly set. The contract defines 10,000 as 100%, meaning that 0.5% should correspond to 50, not 500, and 1% should correspond to 100, not 1000. This miscalculation leads to an overestimation of fee allocations, potentially affecting the distribution of funds.
In FeeCollector.sol#L379, the fee allocation is defined as follows:
Since 10,000 represents 100%, the correct values should be:
0.5% → 50 instead of 500
1% → 100 instead of 1000
Due to this incorrect scaling, the fee percentages are 10 times higher than intended, potentially diverting more funds than expected.
The miscalculation inflates the actual fee deductions, leading to excessive allocations for veRAAC, burn, repair, and treasury shares. This could result in an imbalance in fund distribution, affecting the contract's financial operations and user expectations.
Manual code review.
Adjust the fee allocation values to correctly reflect the intended percentages:
By correcting the values, the contract will allocate fees as intended, ensuring proper fund 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.