An issue has been identified in the _initializeFeeTypes() function where incorrect basis points (bps) are used for the "Buy/Sell Swap Tax" and "NFT Royalty Fees" calculations. The intended percentages as per the comments do not align with the assigned values, leading to incorrect fee distributions.
Intended allocation:
veRAACShare: 0.5% (50 bps)
burnShare: 0.5% (50 bps)
repairShare: 1.0% (100 bps)
Actual allocation in code:
veRAACShare: 500 (5.0%)
burnShare: 500 (5.0%)
repairShare: 1000 (10.0%)
Issue: The total sum equals 20% instead of 2%.
Intended allocation:
veRAACShare: 0.5% (50 bps)
burnShare: 0%
repairShare: 1.0% (100 bps)
treasuryShare: 0.5% (50 bps)
Actual allocation in code:
veRAACShare: 500 (5.0%)
burnShare: 0%
repairShare: 1000 (10.0%)
treasuryShare: 500 (5.0%)
Issue: The total sum equals 20% instead of 2%.
Overcharging of Fees: The fees deducted from transactions are ten times higher than the intended values.
Misalignment with Protocol Expectations: Users will be incorrectly charged higher swap taxes and royalty fees, leading to unfair financial loss.
Manual Code Review
Basic Arithmetic Verification
Correct the Basis Points Assignments:
Buy/Sell Swap Tax:
NFT Royalty Fees:
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.