OtterSec was engaged to audit the tokenomics layer of the OmniSync protocol — specifically the $OMNI SPL token mint, the staking and vesting contracts, and the escrow settlement logic that governs compute payment flows. The audit identified 2 findings: 1 Medium (remediated) and 1 Low (acknowledged).
The $OMNI token implementation follows SPL token standards correctly. The staking contract properly handles lockup schedules, cliff periods, and linear vesting. The burn mechanism (2% per transaction) is implemented at the protocol level and cannot be bypassed by consumers or providers.
| Component | Language | Files | LoC |
|---|---|---|---|
| omnisync-token/programs/omni-token | Rust (Anchor) | 5 | 742 |
| omnisync-token/programs/staking | Rust (Anchor) | 9 | 1,891 |
| omnisync-token/programs/vesting | Rust (Anchor) | 7 | 1,204 |
| omnisync-core/programs/escrow | Rust (Anchor) | 6 | 987 |
| ID | Severity | Title | Status |
|---|---|---|---|
| OTT-001 | Medium | Staking unlock schedule bypass via re-entrancy pattern | ✓ Fixed |
| OTT-002 | Low | Token metadata URI not validated on-chain | ⚠ Acknowledged |
The unlock_stake instruction in the staking program did not follow the checks-effects-interactions pattern. An attacker could invoke a CPI (cross-program invocation) during the unlock process to re-enter the staking contract and trigger an additional unlock before the internal state was updated, potentially withdrawing more tokens than their vesting schedule allowed.
Remediated in commit e4f8a2c. OtterSec verified the fix correctly reorders operations.
The $OMNI token metadata URI (pointing to logo and description JSON) is stored in the Metaplex metadata account but its format is not validated on-chain. A future metadata update could point to a malformed or unavailable URI without triggering an on-chain error.
The team acknowledged this finding and noted that metadata URI updates require the metadata update authority — held in the 4-of-7 security multisig — making malicious updates operationally infeasible. URI format validation would add unnecessary compute overhead to every metadata interaction. Acknowledged without code change.
The OmniSync token and staking system is well-implemented. The single medium severity finding has been remediated. OtterSec is satisfied with the remediation quality and considers the token layer ready for mainnet deployment.