No withdraw mechanism, funds are eth sent to the contract are stucked.
The WeatherNft
contract accepts ETH payments via the requestMintWeatherNFT
payable function but lacks any function or mechanism to withdraw, forward, or utilize the collected ETH. As a result, all ETH sent to the contract becomes permanently locked and inaccessible.
Users are required to send ETH equal to s_currentMintPrice
to mint a weather NFT.
Likelihood: This wil happen every time there is a request to mint nft
Impact:
There is no function provided for the owner to withdraw or forward these ETH funds.
There is no logic to transfer ETH to a treasury or beneficiary address.
The contract could accumulate ETH over time, leading to locked funds.
Implement a secure withdrawal or ETH forwarding mechanism
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.