Moonwell

Moonwell
DeFiFoundry
15,000 USDC
View results
Submission Details
Severity: low
Invalid

State changing function doesn't emit events in `MErc20DelegateMadFixer::sweepAll`

Vulnerability Details

State changing functionMErc20DelegateMadFixer::sweepAll doesn't emit events for parameters change of the protocol.

Context:

function sweepAll(address sweeper) external {
/// @dev checks
require(msg.sender == admin, "only admin may sweep all");
EIP20Interface token = EIP20Interface(underlying);
/// @dev take it, take it all
bool success = token.transfer(sweeper, token.balanceOf(address(this)));
require(success, "token sweep failed");
}

Impact

Not adding an event will not facilitate off-chain monitoring when changing system parameters.

Tools Used

Manual Review

Recommendations

Make sure these endpoints emit events as some off-chain agents might be monitoring the protocol for these events.

Updates

Lead Judging Commences

0xnevi Lead Judge about 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.