The WeatherNft
accepts ETH from users when they call requestMintWeatherNFT
function to mint the weather NFT, Under normal operations, the protocol owner should be able to withdraw these funds as part of the revenue collection. However, the protocol has no withdrawal mechanism for the ETH it receives, making the funds inaccessible to owner.
Likelihood:
The contract does not have a ETH withdraw function.
ETH is always sent to the contract on mint, and there is no path to access these funds.
Impact:
Protocol revenue becomes permanently locked. Making the protocol unsustainable.
Users call the requestMintWeatherNFT
function and pays s_currentMintPrice
in ETH.
The WeatherNft
contract receives s_currentMinPrice
ETH.
No withdraw function for owner to access funds sent to contract.
Add a withdrawETH
function to WeatherNft
contract with a onlyOwner
modifier:
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.