Important function does not have check for preventing EOA to be set for crucial addresses.
SmartVaultManagerV5
have important function like setWethAddress
, setSwapRouter2
, setNFTMetadataGenerator
, setSmartVaultDeployer
, setProtocolAddress
, and setLiquidatorAddress
which are not checked for being a contract address ,that can result in EOA address setting accidently.
Setting wrong address for crucial contract addresses will result in redeploying these addresses and loss of gas which can be expensive if network has high traffic volumes.
Manual code review
The recommendation is made for having checks that verify addresses belong to contract at the time of assigning address.
The above recommendation for made for functions of setSwapRouter2
, setNFTMetadataGenerator
, setSmartVaultDeployer
, setProtocolAddress
, and setLiquidatorAddress
belonging to the contract of SmartVaultManagerV5
.
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.