Brokex Docs
Docs/SECURITY & REVIEWS/Accounting Invariants

Accounting Invariants

Stateful invariants verified across 2,048-call fuzzing campaigns.

  1. invariant_NoArtificialUsdcCreation
  2. invariant_PhysicalShareConservation (nvda.balanceOf(longManager) == totalLongShares - totalBorrowedShares)
  3. invariant_CumulativeLongAccountingExact
  4. invariant_CumulativeShortAccountingExact
  5. invariant_ShortPrincipalNeverTouchedByRevenue
  6. invariant_VaultNavExcludesShortCollateralAndBrokexRevenue
  7. invariant_FifoQueueNoDoubleSpend