The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Contract creation utilizing wrong address

Summary

The protocol sets the liquidation pool manager in this SmartVaultManagerV5.sol

function setProtocolAddress(address _protocol) external onlyOwner() {
protocol = _protocol;
}

The multisig treasury is set in LiquidationPoolManager::constructor

constructor(address _TST, address _EUROs, address _smartVaultManager, address _eurUsd, address payable _protocol, uint32 _poolFeePercentage) {
pool = address(new LiquidationPool(_TST, _EUROs, _eurUsd, ISmartVaultManager(_smartVaultManager).tokenManager()));
TST = _TST;
EUROs = _EUROs;
smartVaultManager = _smartVaultManager;
protocol = _protocol; // @audit multisig
poolFeePercentage = _poolFeePercentage;
}

Impact

Deployer has a high chance of deploying to the wrong address with funds redirected to it.

Tools Used

Manual Review

Recommendations

Change the naming convention used in the LiquidationPoolManager from protocol to multisig while in the SmartVaultManagerV5 to LiquidationManager

Updates

Lead Judging Commences

hrishibhat Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

informational/invalid

thedoctor Submitter
almost 2 years ago
hrishibhat Lead Judge
over 1 year ago

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.