Buyer agent cannot limit or choose on what asset to be purchased which could cause out of gas error if the response contain too many assets to purchase.
The purchase
function in the BuyerAgent.sol
is used by buyer agent to purchase asset based on the best response given by the LLM oracle generators.
Buyer agent cannot purchase asset on that round and as a result waste their funds for the oracle request.
Below is a snippet of the purchase
function:
As seen above, the assets
variable which is the list of assets to be purchased by the buyer agent is decoded from the output
variable which comes from the best response of the LLM oracle generators.
This is a problem if the response contain many assets that the buyer must purchase as this could cause out of gas error and revert the transaction.
Manual review
In the purchase
function, add parameter to limit or choose what asset the buyer agent can purchase.
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.