In BuyerAgent::purchase balance of BuyerAgent is never checked. This could lead to 'random' reverts due to insufficient balance to fulfil the given purchase request.
In BuyerAgent::purchase balance of BuyerAgent is never checked:
This could lead to 'random' reverts due to insufficient balance to fulfil the given purchase request.
Manual Review
Check balance calling BuyerAgent::treasury to see if the buyer can actually purchase the given asset. If his balance is not sufficient revert the transaction with the appropriate error.
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.