In the requestMintWeatherNFT
function, if the user opts to register a keeper (_registerKeeper == true
), the contract attempts to transfer _initLinkDeposit
amount of LINK tokens from the user
However, the contract does not validate whether:
_initLinkDeposit
is a minimum acceptable amount.
Impact:
Users could provide 0
or too little initLinkDeposit
, leading to improper keeper subscription behavior.
Transactions may revert unexpectedly if LINK approval is missing or insufficient, creating confusion.
Recommended Mitigation
Add validation before attempting the LINK transfer:
This is informational/invalid. If the LINK deposit is not enough, the function `registerUpkeep` will revert and it is responsibility of the user to provide the correct amount of `_initLinkDeposit`, if the user wants automated weather updates.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
View preliminary resultsAppeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.