<!-- canonical: https://0xsimao.com/findings/mitosis-current-epoch-advance-domains -->

# The current epoch will never advance if there are no other domains

Low/Info · Three Sigma · Cross-chain liquidity layer 1 · 25th June, 2024

Finding 3S-Mitosis-N17 of the Mitosis security review.

- Protocol: https://mitosis.org/
- Report: /reports/mitosis
- Source: https://cdn.sanity.io/files/qoqld077/production/b6b3bd7bb47407d99e76abb7c6dc615c1db5018e.pdf

---

### Description

In Cap::_processDone(), it returns if no domains are set, if (domains.length == 0)
return;. This means it will be impossible to advance epoch if there are no domains set,
which may be fine as the cap can be increased either way.

### Recommendation

Consider adding a comment with the intended behaviour or modify it if required.

### Status

Addressed in [#67aa296](https://github.com/mitosis-org/evm/pull/200/commits/67aa296bf0115627cd2d58e3138322dcc1c9d854).

---

Related findings:

- [Unnecessary currentEpoch zero check in StandardGovernor and ThresholdGovernor](https://0xsimao.com/findings/m-0-current-epoch-zero-threshold): M^0 Minter Gateway
