Omniscia Boson Protocol Audit

DRFeeMutualizer Static Analysis Findings

DRFeeMutualizer Static Analysis Findings

DRF-01S: Inexistent Event Emission

Description:

The linked function adjusts a sensitive contract variable yet does not emit an event for it.

Example:

contracts/protocol/clients/DRFeeMutualizer.sol
487function setDepositRestriction(bool _restricted) external onlyOwner {
488 depositRestrictedToOwner = _restricted;
489}

Recommendation:

We advise an event to be declared and correspondingly emitted to ensure off-chain processes can properly react to this system adjustment.

Alleviation (efd5d1a8f23c3bca7c25273ea4c912a367250119):

The DepositRestrictionApplied event was introduced to the codebase and is correspondingly emitted in the DRFeeMutualizer::setDepositRestriction function, addressing this exhibit in full.