There is a mismatch in the fee mentioned and the fee set for swap tax and royalty fees.
The following is the implementation for _initializeFeeTypes for Buy/Sell Swap Tax and NFT Royalty Fees :
The values set are incorrect and is increased by 10 times. For Buy/Sell Swap Tax and NFT Royalty Fees it should be 2% total but its 20% each.
The % is calculated in terms of basis points :
The previous fees are all calculated correctly as it can be seen: 2025-02-raac/contracts/core/collectors/FeeCollector.sol at main · Cyfrin/2025-02-raac
The correct values for Buy/Sell Swap Tax and NFT Royalty Fees are :
For 0.5% = (0.5 / 100)10000 = 0.005 * 10000 = 50
for 1.0% = (1 / 100)10000 = 0.01 * 10000 = 100
Users will pay 10 times more fees.
Change the values to 50 for 0.5% and 100 for 1%.
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.