Omniscia Bluejay Finance Audit
StakedToken Static Analysis Findings
StakedToken Static Analysis Findings
STN-01S: Inexistent Event Emissions
Type | Severity | Location |
---|---|---|
Language Specific | StakedToken.sol:L278-L280, L282-L284 |
Description:
The linked functions adjust sensitive contract variables yet do not emit an event for them.
Example:
packages/contracts/contracts/StakedToken.sol
278function setIsStakePaused(bool pause) public override onlyOwner {279 isStakePaused = pause;280}281
282function setIsUnstakePaused(bool pause) public override onlyOwner {283 isUnstakePaused = pause;284}
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.