status() in SmartVaultV3 will always be incorrect due to incorrect version
SmartVaultV3.sol is the third version of SmartVault and is the latest one which will be deployed. The issue is the version state variable has value of 2 instead of 3 as the current vault in scope is V3 version.
This version is used in status function which will return the status of SmartVaultV3 which will be deployed by the users. The issue here is, the status will be returned incorrect and would be break intended design of vault as this status() is being used in smart vault manager contract.
In SmartVaultManagerV5.sol, status() is used in several functions like vaults() and
tokenURI() will be broken as it wont return the correct tokenURI for v3 version.
The issue is identified as Medium severity as it breaks the intended functionality of vaults i.e status and status has been used in SmartVaultManagerV5 contract which is discussed above. It is recommended that the version of Vault contract must be corrected to overcome these issues.
Incorrect status of vault will break the functionality of vault by returning wrong status return value in tokenURI(), vaults() of SmartVaultManagerV5 contract. This will intending like the status is being returned from V2 vault instead of V3 vault which is not the desired behaviour in V3 vault contract.
Manual review
Use 3 instead of 2 in version to get the correct status in SmartVaultV3 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.