Using x/100
when calculating royality fees and platform fees percentages in swan:: transferRoyalties
leads to high precision losses and the expected amounts won't be reached since solidity rounds down.
https://github.com/Cyfrin/2024-10-swan-dria/blob/c8686b199daadcef3161980022e12b66a5304f8e/contracts/swan/Swan.sol#L260C8-L261C87
Lower than deserved return amounts
Manual Review
Consider using 10000 for a higher precision and percentages between 0 - 10000. So that precision losses can be highly limited.
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.