<!-- canonical: https://0xsimao.com/findings/singularity-event-verifier-hub-set -->

# Missing event in VerifierHub::setVerifier()

Low/Info · Three Sigma · Private DeFi access · 26th February, 2024

Finding 3S-SG-L04 of the Singularity security review.

- Protocol: https://www.thesingularity.network/
- Report: /reports/singularity
- Source: https://cdn.sanity.io/files/qoqld077/production/45b8aac56a2b8e3b557df4329ac9bf8220b64012.pdf

---

### Description

[VerifierHub::setVerifier()](https://github.com/portalgateme/darkpool-v1-zk-contracts-fork/blob/master/contracts/core/VerifierHub.sol#L56) should emit an event when a verifier is set.

### Recommendation

Emit events for all relevant state changes.

### Status

Addressed in [#8b300f0](https://github.com/portalgateme/darkpool-v1-zk-contracts-fork/commit/8b300f07a28f2c073154c8de3e9e90ba64ef1934).

---

Related findings:

- [Missing priceFeedDisabled event in RedStonePriceFeedBase](https://0xsimao.com/findings/felix-price-disabled-red-stone): Felix Price Feeds
- [Fee event is missing in the constructors of BRC20Factory and Vault](https://0xsimao.com/findings/orange-fee-event-constructors-brc20): Orange Bridge
- [Missing documentation for MapleLoan, SetPendingLender and AcceptLender being implemented on MapleLoan but not on LoanManager.](https://0xsimao.com/findings/maple-finance-iii-documentation-pending-accept-implemented): Maple Finance
