Liquid Staking

Stakelink
DeFiHardhatOracle
50,000 USDC
View results
Submission Details
Severity: high
Valid

Operators can deposit but could not be able to withdraw.

Summary

In a contract OperatorStakingPool there is a function onTokenTransfer which receives lst token from Operators but after depositing tokens into OperatorStakingPool Operators cannot withdraw their lst tokens.

Vulnerability Details

If any operator who deposited their tokens in OperatorStakingPoolwants to withdraw tokens using withdraw function(operators can directly call it) he will not receive tokens. But, on the other hand their balance got subtracted in the mappings of OperatorStakingPool.

Impact

Operators cannot withdraw their deposited tokens.

Tools Used

Manual Review

Recommendations

Call function from lst ,so the balance of OperatorStakingPool and operator gets updated.

Updates

Lead Judging Commences

inallhonesty Lead Judge
about 1 year ago
inallhonesty Lead Judge 12 months ago
Submission Judgement Published
Validated
Assigned finding tags:

`OperatorStakingPool::_withdraw()` function doesn't transfer the tokens

Support

FAQs

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