The requestMintWeatherNFT
function allows users to mint a weather NFT by sending the exact ETH mint price. Optionally, the user can register a Chainlink Keeper by specifying _registerKeeper
as true and funding the upkeep with _initLinkDeposit
LINK.
However, the contract does not validate the _initLinkDeposit
parameter. As a result, a user can pass a 0
deposit amount.
Likelihood:
The issue occurs every time a user attempts to mint an NFT with _registerKeeper = true
but specifies 0
as the _initLinkDeposit
.
Users or frontend developers unaware of the required LINK deposit value may unintentionally pass 0
or insufficient amounts, leading to failed automation setup.
Impact:
The user pays full ETH minting price under the assumption that automation will be configured, but their NFT will not have an active upkeep.
LINK tokens could be transferred with no meaningful impact or silently fail, potentially misleading the user and increasing support costs or misbehavior in app UX
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.
Appeals are being carefully reviewed by our judges.