The List and reLIst functions are vulnerable to frontrunning
The owner of the buyer contract could frontrun the call to list and increase the royaltyFee of the contract
if the Swan contract has enough allowance, it could transfer the tokens to itself and the buyer
https://github.com/Cyfrin/2024-10-swan-dria/blob/c8686b199daadcef3161980022e12b66a5304f8e/contracts/swan/Swan.sol#L188
The royalty fee is a percent of the price, so the seller could end up paying a higher percentage fee, assuming they have already given the swan contract allowance
Sellers could end up paying more than expected in royalty fees
manual analysis
the sender should submit a maxRoyaltyFee with the cal
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.