Can be seen in docs here at the bottom of the page it says that the basis points are 10_000 which is 100%.
It can also be checked in the interface of the contract that 10_000 = 100%.
Even in the tests as can be seen here it is being tested with the correct values.
It also can be seen here in the RAACToken contract that swapTaxRate of 100 points means 1%.
As we can see in this code block it says that 500 points = 0.5%, but this actually is 5% and 1000 is 10%.
This will eventually tax more than expected.
And also as the comments says 2% total
it is actually 20% total
, so it will tax 10 times more than expected.
The _initializeFeeTypes()
function incorrectly sets the basis points for Buy/Sell swap tax and NFT Royalty tax.
The docs says that 10_000 = 100%, which means that 100 points is 1%, 50 points is 0.5% and so on.
This miscalculation results in the contract charging a lot more than expected.
Users will be charged more than intended and burn more tokens than intended.
Manual
Consider removing 1 zero to match the expected behaviour.
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.