https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/swan/Swan.sol#L326-L337
https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/swan/Swan.sol#L326-L337
https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/swan/BuyerAgent.sol#L120-L134
It is possible to create a BuyerAgent
contract through the Swan::createBuyer
function with amountPerRound == 0
which would not allow it to use the protocol at all
There is not input validation on the amountPerRound
provided by the user when creating a BuyerAgent
through the Swan::createBuyer
.
A BuyerAgent
created with amountPerRound == 0
would not be able to buy any asset using the protocol being, this way, useless.
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.