Hi,
I have found out potential bug in your contract 'NFTFactory.sol' which can leads to unlimited NFT minting theoratically by no maximum supply limit in the contract.
The key details of this potential vulnerability can be given as follows:
In this contract, the function createEstate
is able to mint NFTs for the Inheritance Manager without restriction as there's no maximum supply of NFT check available. With this, it can lead inflation in the value of NFTs minted and eventually degrade it's worth.
Unlimited minting of NFTs leads to inflation, reducing its value.
Manual Code Analysis
It's preferable to put limit on NFTs minted to maintain it's value and gas efficient. The sample code for implementation is given below:
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.