The Fee calculation in FeeCollector:_initialiseFeeTypes for buy/sell swap tax expects 2% total fee collection. But miscalculates this due to incorrect percentage basis point representation. The feeTypes[6] claims a veRAACShare of 500/10_000 (5%), burnShare of 500/10_000 and repairShare of 1000/10_000 (10%) which accumulates to 20% instead of intended 2% by contract logic.
The initialiseFeeTypes calculates for 20% total Fee in FeeTypes[6] and FeeTypes[7] instead of 2%
The NFT Royalty Fees feeTypes[7] also allocates 5% to veRAACShare, 5% to treasuryShare and 10% to repairShare amounting to 20% instead of intended value of 2%.
Incorrect Fee Allocation
manual review, foundry
Update the veeRAACShare, burnShare and repairShare FeeCollector::_initialiseFeeTypes to the appropriate Basis Point value (50, 50, 100) respectively.
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.