UNCX’s Vesting V2 system was reported to have a share-accounting flaw that let attackers inflate claims on pooled tokens, with realized losses of about $808K across multiple chains (early estimates said around $1.5 million). The problem centered on inconsistent updates to share counters after withdrawals and cancellations.

This is a common smart-contract failure mode: one function updates part of the accounting, while another later reads stale state and applies the wrong deduction. Once the invariant is broken, attackers can repeatedly extract more than their fair share.

Defenders should treat global counters and share balances as critical invariants. Every state-changing path needs to preserve those invariants, and test suites should cover withdrawals, cancellations, edge cases, and repeated calls under adversarial conditions.

Pooled-asset systems also benefit from continuous balance checks and emergency pause controls. If the recorded shares and actual custody ever diverge, the safest response is to stop withdrawals before the error compounds.