F-2025-0019·dead-code
ETH calls on Dolomite_Module have no corresponding calls on Dolomite
TL;DR
Four ETH-handling entry points on Dolomite_Module reference functions that do not exist on the deployed Dolomite contract. The selectors are dead code and should be removed.
Severity
INFO
Impact
LOW
Likelihood
LOW
Method
MManual review
CAT.
Complexity
LOW
Exploitability
LOW
02Section · Description
Description
The following calls have no corresponding call on the Dolomite deployed contract:
Dolomite_Module::dolomite_depositETHDolomite_Module::dolomite_withdrawETHDolomite_Module::dolomite_depositETHIntoDefaultAccountDolomite_Module::dolomite_withdrawETHFromDefaultAccount
Consider removing them.
03Section · Recommendation
Recommendation
Remove the four functions from Dolomite_Module and from the strategy's selector registration to keep the surface area aligned with what Dolomite actually exposes.
04Section · Resolution
Resolution
D2: Removed in dc68fe8.
Cyfrin: Verified.
Status
Fixed
Fix commit
dc68fe8