In `BaseChainlinkFunctionsOracle.sol` Workflow is like below
sendRequest
for sending a request.
It uses the FunctionsRequest
library to initialize the request and add any passed encrypted secrets reference or arguments.
sends the request to the router by calling the FunctionsClient
sendRequest
function. Finally, it stores the request id in s_lastRequestId
.
fulfillRequest
to be invoked during the callback
During this fulfillRequest()
there should be a `requestId` validation to check if callback requestId is equal to lastRequestId stored in contract other wise it should revert a msg.
Same method of validation present in Chainlink Guide
, should implement something similar like this
https://docs.chain.link/chainlink-functions/tutorials/api-query-parameters#examine-the-code
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.