<!-- canonical: https://0xsimao.com/findings/ostium-epoch-count-stores-information -->

# OstiumOpenPnl::nextEpochValuesRequestCount stores the same information as nextEpochValues.length

Low/Info · Three Sigma · RWA perpetuals DEX · 19th February, 2024

Finding 3S-OS-N21 of the Ostium security review.

- Protocol: https://www.ostium.com/
- Report: /reports/ostium
- Source: https://cdn.sanity.io/files/qoqld077/production/a95b9c69e0f65d1d6b0e649f0d62a362358ca8ce.pdf

---

### Description

[OstiumOpenPnl::nextEpochValuesRequestCount](https://github.com/0xOstium/smart-contracts-threeSigma/blob/audit-feedback/src/OstiumOpenPnl.sol#L29) can be removed as it is the same as
checking [nextEpochValues.length](https://github.com/0xOstium/smart-contracts-threeSigma/blob/audit-feedback/src/OstiumOpenPnl.sol#L24).

### Status

Acknowledged

---

Related findings:

- [RedeemQueue::isResolved() resolvedCount always returns requestIds.length](https://0xsimao.com/findings/mitosis-redeem-queue-resolved-count): Mitosis
