Open hats-bug-reporter[bot] opened 11 months ago
This is more important than I thought it would be, because when a node is malicious and it's validator is slashed, the protocol can't cover for the losses from the node's rewards
This function is not implemented since it is not being used. It will be deprecated. TY
Github username: @0xfuje Submission hash (on-chain): 0x968c7b27073e2eef937359934daa5d0c71a63e63ca81789554b61d7664ec071a Severity: medium
Description:
Description
The
moveRewardsToManager()
function ofEtherFiNode
is restricted to only be callable from the manager contract and is expected to move rewards toEtherFiNodeManager.sol
. However the problem is that the node manager can't possibly call this function because the call is currently unimplemented in the manager contract.src/EtherFiNode.sol
-moveRewardsToManager()
src/EtherFiNode.sol
-onlyEtherFiNodeManagerContract()
Recommendation
Consider either implementing the
moveRewardsToManager()
function inEtherFiNodeManager.sol
or if the function serves no purpose currently: removing it fromEtherFiNode.sol
.