Omniscia Bluejay Finance Audit

TreasuryBondDepository Static Analysis Findings

TreasuryBondDepository Static Analysis Findings

TBD-01S: Inexistent Event Emissions

Description:

The linked functions adjust sensitive contract variables yet do not emit an event for them.

Example:

packages/contracts/contracts/TreasuryBondDepository.sol
145function setIsRedeemPaused(bool pause) public override onlyOwner {
146 isRedeemPaused = pause;
147}
148
149function setIsPurchasePaused(bool pause) public override onlyOwner {
150 isPurchasePaused = pause;
151}

Recommendation:

We advise an event to be coded and correspondingly emitted to ensure off-chain processes can properly react to these changes.

Alleviation:

Events have been introduced for both state transitions referenced alleviating this exhibit.