The requestMintWeatherNFT()
function is marked payable
, allowing users to send native tokens (e.g., ETH, AVAX) as payment for minting the NFT. However, the smart contract does not implement any function to withdraw these accumulated native tokens from the contract's balance.
Likelihood: High
Every successful call to requestMintWeatherNFT
deposits native tokens into the contract's address.
There is no function currently available in the contract's code that can send these native tokens out.
Impact: High
Any native tokens sent to the contract as minting fees will become permanently locked within the contract's balance and cannot be accessed or retrieved by the contract owner or any other party.
Implement a function, callable only by the contract owner
, that allows transferring the contract's native token balance to a specified recipient address.
The contract collects funds for minting a WeatherNFT, but there is no function that allows the owner to withdraw these funds.
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.