MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

StETHMock::_transfer is a dead function

Summary

StETHMock::_transfer is a dead function because is internal and has no callers.

Vulnerability Details

function _transfer(address _sender, address _recipient, uint256 _amount) internal override {
uint256 _sharesToTransfer = getSharesByPooledEth(_amount);
_transferShares(_sender, _recipient, _sharesToTransfer);
}

_transfer is an internal function that doesnt have any callers

Impact

Having dead code in the contract’s runtime bytecode, increase its size for no benefit.

Tools Used

Manual review

Recommendations

Remove dead/unreachable code.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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