Liquid Staking

Stakelink
DeFiHardhatOracle
50,000 USDC
View results
Submission Details
Severity: low
Invalid

Redundant updation of withdrawalPool while updating with previous previous withdrawalPool address in setWithdrawalPool

Summary:

calling setWithdrawalPool with the old withdrawalPool address is redundant

Vulnerability Details

setting the withdrawal pool in setWithdrawalPool with the same old withdrawalPool address makes redundant

Tools used:

Manual Inspection

Recommendation:

Add this below check in setWithdrawalPool

function setWithdrawalPool(address _withdrawalPool) external onlyOwner {
require(_withdrawalPool == withdrawalPool, "can't update with same withdrawalPool address");
...
}

code snippet

https://github.com/Cyfrin/2024-09-stakelink/blob/f5824f9ad67058b24a2c08494e51ddd7efdbb90b/contracts/core/priorityPool/PriorityPool.sol#L579

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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