Liquid Staking

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

isRemoved() function will always return `false`

Summary

The isRemoved function in the contract is intended to check whether an item or entity has been removed. However, the current implementation always returns false, regardless of the actual state of the item.

Affected Code

Impact

This will create a confusion as the function internally calling isRemoved()will always receive false boolean value.

Tools Used

Manual

Recommendations

Instead of always returning false, the contract should store the removal status of the item in a variable and update that status when an item is removed

Updates

Lead Judging Commences

inallhonesty Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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