Security & audits
Tangent publishes its security process the way it publishes its NAV: numbers, not adjectives. This section is updated whenever a review round or a tool run completes.
Scope
| Codebase | Status | What it is |
|---|---|---|
V1 (TangentPool, TangentOracle, TangentOptions, TangentRewardsV2) | Retired (2 December 2026) | The first pool. Its liquidity was moved to V2; the contracts remain on-chain for history. |
V2 (TangentVaultCore + libraries, TangentOracleV2, HedgeOutbox, ReturnRouter, HedgeVault, L1ReadHedgeEquityReader) | Live on Elysium | The pool you trade against today. Timelocked governance (48 h parameters / 7 d custody), a withdrawal queue with a 24 h SLA, on-chain hedge custody on HyperEVM, and no path for any role to move LP funds anywhere but back to the pool. |
V2 adversarial review — five rounds
Every round is run by reviewers with no access to the previous round's notes, each with a different lens (accounting and share math; swap pricing and risk modes; governance and timelocks; the hedge custody path; large-capital and economic extraction). A finding only counts if it comes with a proof-of-concept test that demonstrates it; every fix ships with that test as a permanent regression.
| Round | Lens | Findings | Status |
|---|---|---|---|
| 1 | Full-surface review of the first V2 draft | 27 (8 High / 9 Medium / 10 Low) | All fixed |
| 2–4 | Re-review after fixes: equity watermarks, withdrawal queue, exit mode, oracle rate limits, reader fallback, hedge-vault custody | 27 | All fixed |
| 5 | Economic extraction (LP vs LP, trader vs pool) + the hedge path at 100–1000× today's size | 6 (3 Medium / 3 Low) | All fixed |
60 findings, 60 fixed, 0 open. Nothing was rated Critical. Representative fixes, so you can judge the depth rather than the count:
- Share accounting — deposit-side NAV uses the 24 h high-water mark of hedge equity and withdraw-side NAV the low-water mark, so no single oracle or equity print can be sandwiched; a 24 h minimum hold with amount-weighted stamps closes the transfer-to-reset loophole; ERC-4626-style virtual shares make first-depositor and donation attacks unprofitable.
- Oracle — two independent posters; one poster can move the price at most 3 % per minute cumulatively; larger moves need the second poster's confirmation inside a 60 s window and a 2 % band; share pricing (not just trades) is clamped to ±3 % of the 5-minute TWAP.
- Withdrawals — a FIFO queue with a 24 h SLA that the owner cannot pause; if the SLA is missed the pool itself goes reduce-only and cannot move capital to the hedge until the queue is cleared; a 95 % price floor on default requests returns shares rather than underpaying.
- Hedge custody — the HyperEVM
HedgeVaultis the Hyperliquid account; its bridge, return router and USDC are immutable, so capital can only come back to the pool. If the keeper is silent for 7 days (or exit is armed) anyone may close positions with reduce-only IOC orders, rate-limited to once per 24 h, and after 3 days anyone may start returning margin to the pool, 25 % per hour. - Module blast radius — the options module's reported liability is capped at 50 % of NAV before it touches share price, so a compromised module cannot zero the NAV; every external hook (rewards, options, RFQ, reader) runs under a gas stipend inside try/catch.
- Exit —
triggerExitis irreversible, callable by guardian/owner at any time and by anyone after 7 days without an accepted equity value; in exit mode the pool only sells inventory back to USDC and LPs withdraw pro rata.
Automated analysis (runs on every commit)
| Tool | Version | Scope | Result |
|---|---|---|---|
| Hardhat test suite | — | V2 | 551 passing, including every PoC from the five rounds |
| Slither | 0.11.6 | src/v2/** | 0 High. Remaining Medium/Low items are triaged pattern matches (block.timestamp in cooldowns, == 0 checks, loops over the owner-bounded market list). |
| Mythril | latest | TangentOracleV2, HedgeVault, HedgeOutbox, ReturnRouter | 30-minute symbolic execution per contract. Oracle and HedgeVault: 0 issues. Outbox and Router: only owner-gated rescue paths flagged (the tool cannot see that core.owner() is a fixed address). |
| Aderyn | 0.6.8 | src/v2/** | 4 High / 14 Low reported; all four High items reviewed and documented as false positives (constructor-time external call, memory copy of a storage struct, bounded casts, a payable function that forwards msg.value exactly). |
| Solhint | latest | src/v2/** | 0 errors |
Bytecode: TangentVaultCore is 24,475 bytes against the 24,576-byte EIP-170 limit; the core is deliberately non-upgradeable.
What this is not
- Not a third-party audit firm report. The five rounds are internal adversarial reviews. V2 will not take external LP capital at scale before a firm review; the Elysium ecosystem's security partners are the intended route and the credits/grant process is in progress.
- Not a mainnet track record. V2 went live on 2 December 2026 with the team's own liquidity migrated from V1; the first hedge-capital bridge leg is in progress and the return leg has not yet been exercised on mainnet.
- Not a guarantee. Round 5 found three Medium issues in code that four earlier rounds and four tools had passed. That is the argument for continuing to review, not for declaring the work done.
Full per-finding write-ups, PoC tests and the CI configuration are in the contracts repository; the deployment addresses are listed under Contracts and in the security disclosure.
Security disclosure TGT-SEC-2026-001 — Tangent V2 vault architecture
Publication date: 2 December 2026 · Status: live, team liquidity migrated · Classification: public
1. Executive summary
This disclosure documents the security review programme applied to the Tangent V2 vault architecture prior to its mainnet deployment on Elysium. The reviewed code was deployed on 2 December 2026 (Section 6); the team's own V1 liquidity was migrated into it the same day and the five launch markets were opened. Between 28 November and 2 December 2026 the V2 codebase underwent five independent adversarial review rounds and four automated analysis pipelines. Sixty (60) findings were raised; sixty were remediated; zero remain open. No finding was classified Critical. Each remediation is covered by a proof-of-concept test retained permanently in the regression suite, which stands at 551 passing tests.
The programme is internal. No third-party audit firm has yet reviewed V2. Section 7 states this limitation and the conditions under which external LP capital will be accepted.
2. Scope
| Component | Chain | nSLOC | Role |
|---|---|---|---|
TangentVaultCore + VaultEquity, VaultGovernance, VaultPricing, VaultQueue | Elysium (99901) | 2,077 | LP vault, swap engine, withdrawal queue, timed governance |
TangentOracleV2 | Elysium | 294 | Two-poster rate-limited price oracle with TWAP |
HedgeOutbox, ReturnRouter | Elysium | 124 | Canonical-bridge egress / ingress for hedge capital |
HedgeVault, L1ReadHedgeEquityReader | HyperEVM (999) | 353 | Hyperliquid custody account and equity reader |
DefaultPricingModule, interfaces | Elysium | 76 | Pluggable spread / skew module |
Compiler: Solidity 0.8.26, via-IR, 200 optimizer runs, EVM cancun. OpenZeppelin Contracts v5. Reviewed commit: 388f60b. Out of scope: V1 contracts currently live, the off-chain hedger, the web application.
3. Methodology
3.1 Adversarial review. Five rounds, each conducted without access to prior rounds' notes and each with a distinct threat lens:
| Round | Lens |
|---|---|
| R1 | Full-surface review of the initial V2 implementation against the written specification |
| R2 | Share accounting, equity watermarks, NAV smoothing, hold periods |
| R3 | Withdrawal queue, exit mode, oracle rate limits, reader degradation |
| R4 | Governance timelocks, hedge custody path, bridge keying, module blast radius |
| R5 | Economic extraction (LP-vs-LP, trader-vs-pool) and behaviour at 100–1000× current scale |
Acceptance criterion: a finding is recorded only if accompanied by an executable proof-of-concept against the project's test fixtures. Each fix ships with that proof-of-concept converted to a regression test.
3.2 Automated analysis. Executed in continuous integration on every commit: Slither 0.11.6, Mythril (symbolic execution, 30-minute budget per contract, solc 0.8.26), Aderyn 0.6.8, Solhint, and the full Hardhat suite.
3.3 Severity scale. Critical — direct loss of LP principal without privileged access. High — loss of funds or permanent denial of withdrawals under realistic conditions. Medium — bounded value extraction, mispricing, or degraded safety guarantees. Low — deviation from specification without direct economic impact. Informational — code quality.
4. Results
4.1 Findings by round
| Round | Critical | High | Medium | Low | Total | Open |
|---|---|---|---|---|---|---|
| R1 | 0 | 8 | 9 | 10 | 27 | 0 |
| R2–R4 | 0 | — | — | — | 27 | 0 |
| R5 | 0 | 0 | 3 | 3 | 6 | 0 |
| Total | 0 | 60 | 0 |
4.2 Representative remediations
| ID | Severity | Summary | Remediation |
|---|---|---|---|
| R5-B1 | Medium | Options-module liability deducted from NAV without bound; a faulty module could zero NAV and allow a minimal deposit to capture the pool | Liability clamped to 50 % of pre-liability NAV in all NAV computations |
| R5-B2 | Medium | Landed hedge capital treated as a loss by the 24 h low-water mark, under-pricing withdrawals for up to 24 h | Low-water mark credited with landed in-flight amounts |
| R5-A1 | Medium | Permissionless emergency position close relied on a keeper-silence signal that is trivially true in production | 7-day silence threshold, 24 h global cooldown, keeper heartbeat added |
| R4-H1 | High | Bridge router keyed by the wrong-chain token address would have stranded hedge capital permanently | Dual-token constructor with on-chain l1Address assertion |
| R3-M3 | Medium | Oracle confirmation could serve as a free rate-limit step | Jump budget accrues from the confirmation anchor |
| R2-H | High | Share transfer could reset the minimum hold period | Amount-weighted hold stamps with 48 h age-credit cap |
4.3 Automated analysis
| Tool | Scope | Result | Disposition |
|---|---|---|---|
| Hardhat | V2 | 551 passing | — |
| Slither 0.11.6 | src/v2/** | 0 High; 48 Medium; 83 Low | All Medium / Low triaged as pattern matches (block.timestamp in cooldowns, strict-equality zero checks, bounded loops over the owner-controlled market list) |
| Mythril | 4 contracts | Oracle, HedgeVault: 0. Outbox, Router: owner-gated rescue paths flagged | False positives: caller restricted to core.owner() |
| Aderyn 0.6.8 | src/v2/** | 4 High, 14 Low | All four High reviewed: constructor-time external call; memory copy of a storage struct; bounded integer casts; payable function forwarding msg.value exactly |
| Solhint | src/v2/** | 0 errors | — |
5. Security properties of the deployed design
- No role, including the owner, can transfer LP assets to any address other than the vault or an LP's own account.
- Withdrawals are serviced by a FIFO queue with a 24-hour service-level objective that cannot be paused. Breach of the objective places the vault in reduce-only mode and blocks outbound hedge transfers until cleared.
- Parameter changes are subject to a 48-hour timelock; custody changes to 7 days. A cold key may veto any pending operation.
- Hedge capital is custodied by an immutable HyperEVM contract whose only egress is the canonical bridge back to the vault.
- Fail-safes degrade toward LP withdrawal: stale equity decays to zero on the withdrawal side over 7 days; after 7 days without an accepted equity value, exit may be triggered by any address; in exit mode the vault may only convert inventory to USDC.
- The core contract is non-upgradeable (24,475 of 24,576 permitted bytes).
6. Deployment and governance
Deployed 2 December 2026 from the reviewed commit. All addresses were precomputed from the deployer nonce and verified on-chain after deployment; cross-chain references (HedgeOutbox → HedgeVault, HedgeVault → ReturnRouter) were asserted before any transaction was sent.
| Contract | Chain | Address |
|---|---|---|
TangentVaultCore | Elysium | 0xCfBA2dB1c3f13Bfc5993F7F167095DB298DdCE11 |
TangentOracleV2 | Elysium | 0xBA2Ce1Bdc435490FAe1F3F86E5D13B2efD81b50D |
HedgeOutbox | Elysium | 0x60Be77F5Fc150FD9d8460cdBB5eBFA4423E5C1d2 |
ReturnRouter | Elysium | 0x0DF6Cc062c3faf2D4c80208aBfd15836D828739c |
DefaultPricingModule | Elysium | 0x3F18092d33803c3f32d3e30aaa941f37E0fEF0F1 |
TimelockController | Elysium | 0x7a07bE902eca6E11347E9f743F19ff2f8901B229 |
HedgeVault | HyperEVM | 0x32cc5d0CB5213a72604cCb0B5E81d0e2C93cDB38 |
L1ReadHedgeEquityReader | HyperEVM | 0x39ba3973e41c2D7AFb01b5Bf6F83BAe3127d4Fbd |
One post-review change was made before deployment and is reflected in the addresses above: addMarket appends a market immediately while the vault has no LP shares outstanding (there is no capital for the delay to protect), and reverts to the 48-hour proposal path from the first deposit onward. The rule, its single-slot proposal semantics after bootstrap, and the owner-only access are covered by the regression suite. The five launch markets were seeded this way, paused, and opened by the guardian once the seed deposit and hedge capital were in place on 2 December 2026.
TimelockController: minimum delay 172,800 s; proposer and canceller roles held by the operational key; canceller role additionally held by a cold key; executor role open; administrative role held by the timelock itself. Vault ownership is pending with the timelock since the seed deposit (two-step: transferOwnership executed, acceptOwnership() scheduled and executable on 4 December 2026 05:27 UTC); oracle ownership is likewise pending and becomes executable on 4 December 2026 03:48 UTC. From then on every owner action is a timelock operation.
7. Limitations
- This programme is internal. It does not substitute for a review by an independent audit firm. Tangent will not solicit external LP capital at scale into V2 before such a review is complete.
- V2 has no meaningful mainnet operating history yet. The deposit →
moveToHedge→ bridge leg was first exercised on 2 December 2026 with the team's own capital; the return leg (HedgeVault → ReturnRouter → vault) has not yet been exercised on mainnet. - Round 5 identified three Medium findings in code previously passed by four rounds and four tools. The programme is ongoing.
- Known accepted trade-offs: hedge losses coinciding with capital landing may be reflected in NAV with a delay bounded by the 30-day in-flight TTL; a USDC-blacklisted address at the queue head requires manual intervention.
8. Forthcoming
Per-finding write-ups with proof-of-concept references and the CI configuration will be published before external LP capital is solicited. The first mainnet return leg (Section 7, item 2) will be reported here when complete.
This document describes software security properties. It is not an offer, solicitation, or financial advice. Participation involves risk of loss.