For a buyer in particular round if market parameter is changed in the middle of the round and maxAssetCount
is increased. When seller calls list for this buyer in that round this will revert due to wrong check of ==. Even though assetsPerBuyerRound[buyer][round] array length is lesser than maxAssetCount.
So this is unexpected revert behaviour.
https://github.com/Cyfrin/2024-10-swan-dria/blob/main/contracts/swan/Swan.sol#L167C9-L170C10
Unexpected revert when for the particular buyer in any round market params changed and maxAssetCount
is increased. Then seller will not be able to list in that round for that buyer again due to wrong check.
Use <= as it is used in relist function
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.