<!-- canonical: https://0xsimao.com/findings/metazero-ii-missing-events -->

# Missing some events

Low/Info · Three Sigma · Omnichain RWA tokenisation · 6th April, 2024

Finding 3S-MZ-L03 of the MetaZero Staking security review.

- Protocol: https://metazero.gg/
- Report: /reports/metazero-ii
- Codebase: https://github.com/0xsimao/stakingContract/tree/dffac73e838a9fbd12bed18e41b9799177bcde7f
- Source: https://cdn.sanity.io/files/qoqld077/production/3e07b0c2806b62578b8031e88c59bc5dbd38de1b.pdf

---

### Description

Events in the constructor are not emitted.
rewardPerToken update could emit an event.
withdrawFees() is missing feesAccrued event.
completeUnstake() is missing fee paid event.

### Recommendation

Emit events for all state changes.

### Status

Acknowledged

---

Related findings:

- [Missing admin change events](https://0xsimao.com/findings/keyring-ii-missing-admin-change-events): Keyring Credentials
- [Important events are missing](https://0xsimao.com/findings/metazero-i-important-events-missing): MetaZero Omnichain NFTs
- [Missing key events when requesting withdrawals that could be important for the allocator bot](https://0xsimao.com/findings/yieldoor-iii-requesting-withdrawals-allocator-bot): Yieldoor LoopedVault Update
