Odd Tartan Gerbil
Medium
The hardcoded address for vaultOldAddress
will cause deployment issues for the contract users as they will not be able to deploy in different environments where the address differs.
In vaultV2Deployer.sol:45
, the address vaultOldAddress
is hardcoded instead of being passed as a parameter.
- Admin needs to deploy the contract with a fixed address for
vaultOldAddress
.
- No external conditions required for this issue to manifest.
- The contract is deployed with a hardcoded
vaultOldAddress
. - The contract cannot interact with the correct address if deployed in a different environment or address changes.
The affected party (contract users) cannot deploy the contract correctly in different environments due to the hardcoded address.
Numa/contracts/deployment/vaultV2Deployer.sol
address vaultOldAddress = 0x8Fe15Da7485830f26c37Da8b3c233773EB0623D2; // Hardcoded address
Replace the hardcoded address with a constructor parameter to allow dynamic address assignment during deployment.