Omniscia Bluejay Finance Audit
StabilizingBondDepository Static Analysis Findings
StabilizingBondDepository Static Analysis Findings
SBD-01S: Inexistent Event Emissions
Type | Severity | Location |
---|---|---|
Language Specific | StabilizingBondDepository.sol:L218-L220, L222-L228, L230-L236, L238-L240, L242-L248, L250-L252, L254-L256, L258-L264 |
Description:
The linked functions adjust sensitive contract variables yet do not emit an event for them.
Example:
packages/contracts/contracts/StabilizingBondDepository.sol
230function setControlVariable(uint256 _controlVariable)231 public232 override233 onlyOwner234{235 controlVariable = _controlVariable;236}
Recommendation:
We advise an event to be coded and correspondingly emitted to ensure off-chain processes can properly react to these changes.
Alleviation:
Events and corresponding event emissions have been introduced throughout the relevant setter functions as advised.