Liquid Staking

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

Missing Event Emissions in Withdrawal Functions

Summary

Missing Event Emissions in Withdrawal Functions

Vulnerability Details

The `withdraw` and `_withdrawLiquidity` functions in the StakingPool contract do not emit events to log important state changes. This omission reduces transparency and makes it difficult for external systems to track and react to withdrawal activities.

https://github.com/Cyfrin/2024-09-stakelink/blob/f5824f9ad67058b24a2c08494e51ddd7efdbb90b/contracts/core/StakingPool.sol#L142

https://github.com/Cyfrin/2024-09-stakelink/blob/f5824f9ad67058b24a2c08494e51ddd7efdbb90b/contracts/core/StakingPool.sol#L500

Impact

The lack of events makes it harder to audit the contract's behavior and track historical actions.

Tools Used

Manual review

Recommendations

Emit event for critical operations.

Updates

Lead Judging Commences

inallhonesty Lead Judge 8 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.