Fee Types 6 (Swap Tax) and 7 (NFT Royalty) use basis point values that sum to 2,000 bps (20%) instead of the required 10,000 bps (100%), leaving 80% of fees unassigned.
In the code below, you can see that the developer intended to do 2500 + 2500 + 5000 = 10,000 which will be 100% of the 2% fee collected. The error in the code is 500 + 500 + 1000 = 2000which is 20% of the 2% leaving 80% of the 2% fee unallocated.
Real-World Scenario:
A decentralized exchange (DEX) processes $10M in daily swaps
Intended Allocation: 2% tax = $200,000/day
Actual Allocation: Only 20% of 200,000(200,000(40,000) is distributed.
Result: 160,000/day is lost or stuck in the contract
From the details above, we can see that the protocol losses a lot of money due to this oversight. 80% of the fees loss or stuck in the contract is huge. Also protocol revenue leaks, undermining sustainability.
Manual review
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.