<!-- canonical: https://0xsimao.com/findings/ostium-inability-close-positions-positive -->

# Inability to Close Positions with Significant Positive PnL

Crit/High · Three Sigma · RWA perpetuals DEX · 19th February, 2024

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

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

---

### Description

Presently, when there isn't adequate liquidity in the OstiumVault to cover profits for trades
with substantial positive PnL, a revert occurs. While this behavior is intended, it's worth
considering implementing a solution to partially receive the profit up to a maximum
threshold or at least the collateral itself. Otherwise, traders won't be able to exit a position
at all.

### Status

Acknowledged
