The RAACNFT.sol contract enables minting NFTs by taking in crvUSD via RAACNFT::mint, however, there is no way to retrieve these crvUSD for the owner / admin / stakeholder.
The RAACNFT::mint function can be used by anyone to mint NFTs by paying certain amount of crvUSD as per the current house price.
However, after these purchases are taken place, the owner / admin / stakeholder has no function for retrieving these crvUSD in the contract.
The RAACNFT.sol is a non upgradable contract, hence the funds will be lost.
Loss of funds for the owner / admin / stakeholder as there's no way to retrieve the funds.
Renders the contract useless.
Add the below test case inside the RAACNFT.test.js file:
Manual Review
/
Hardhat
It is recommended to add a withdraw token function for the owner in the RAACNFT.sol contract:
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.