There is no burning mechanism defined in SmartVaultManagerV5
. Without a burning mechanism, there is a limit to the number of vaults that can be created, which is 2 ** 256 - 1
. If the protocol becomes widely used, reaching this limit could be detrimental.
The absence of a burning mechanism means that, in the long run, the protocol could reach a state where no more vaults can be minted, leading to the end of the protocol. Although the likelihood of this happening is very low, a determined attacker could potentially accelerate the process at a high cost in gas fees.
Implement a burning mechanism to reuse token IDs that become available. One approach is to create an array to keep track of deleted token IDs and redistribute them in the mint
function. Additionally, utilize the _burn
function inherited from ERC721Upgradeable
in the SmartVaultManagerV5:liquidateVault
function.
Example of a mechanism:
Note: Burning a token ID does not pose a risk to vaults, as it won't delete vault contracts or the tokens within them.
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.