The BuyLimitExceeded error event has its parameters have and want reversed in the revert statement.
The BuyLimitExceeded error is intended to trigger when the total funds to be spent (spendings[round]) exceed the available funds for the round (amountPerRound). However, the revert statement erroneously passes spendings[round] as the have parameter and amountPerRound as the want parameter, which is opposite to the intended meaning.
The input for have is spendings[round], which actually is the total funds want to be spent.
The input for want is amountPerRound, which actually is the total funds the buyer agent have in the cycle.
This issue can mislead users or developers who rely on error messages.
vscode
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.