Start here

Contracts & addresses

Everything deployed on Elysium mainnet (chain id 99901), first deployed 2026-11-28. Sources are verified on the explorer; the JSON ABIs ship in the @tangent/shared package and are reproduced by GET /api/health (addresses) and GET /skill.md (usage).

Core

ContractRoleAddress
TangentPoolUSDC vault (tLP), quoting, swaps, risk policy, hedge accounting0x63E9820703bA150068C4533e292D1A1745dcaE87
TangentOraclePosted Hyperliquid marks + optional native source, TWAP ring buffer0xCF0FA1a6E2cb9210382D1a0e0808Fc1b7A90eC2c
TangentRFQEIP-712 firm quotes filled via pool.swapRFQ— not deployed —
TangentHookUniswap v4 hook routing allowlisted pools into TangentPool0xFE34Fb976Ab10c76050a77A0EAd3Adbb76062888
TangentTranchetSR / tJR senior-junior split over tLP— not deployed —
TangentOptionsERC-1155 cash-settled options written by the pool— not deployed —
TangentRewardsV2Holder rewards (attested Montra buyers)0xe606Ba4EF90d23897A7b016D69392f3682CAC70C
TangentTreasuryReceives claimed protocol fees0xf91b8ebd2552fD513fD74B5307804410FfBe7A31
Uniswap v4 PoolManagerElysium PoolManager the hook pool lives on (external)0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1

Ownership: TangentPool is Ownable2Step; owner / operator / guardian / treasury are returned live by GET /api/pool → roles. What each role can and cannot do is on Roles, trust & risks.

V2 (live)

The second-generation pool is live on Elysium since 2026-12-02 (second deployment; the 2026-12-02T03:45Z core 0xf1C2…8D79 is abandoned) with the five V1 markets listed and open (ids 0–4: WHYPE, UBTC, UETH, USOL, PURR); the team's V1 liquidity was migrated into it on 2026-12-02 and TangentPool is retired. The app serves V2 right now (NEXT_PUBLIC_POOL_VERSION; GET /api/health → pool.version). V2 keeps every V1 view / swap / LP selector and adds a FIFO withdrawal queue (requestWithdraw(shares) · cancelWithdraw(id) · processWithdrawals(max) · withdrawRequest(id) · queueHead() · queueLength() · withdrawalsOverdue(); instant withdraw / redeem revert UseQueue while the queue is non-empty), a 24h minimum hold before queueing (MinHold), a permanent exit mode (exited(), triggerExit()), an equity limiter (equityState()) and 48h / 7d timelocked parameter changes (pendingChange(kind), applyParam(kind)).

Contract (Elysium 99901)RoleAddress
TangentVaultCoreERC-20 tLP vault + swap engine + FIFO withdrawal queue (24h SLA) + timed governance; ABI superset of TangentPool0xCfBA2dB1c3f13Bfc5993F7F167095DB298DdCE11
TangentOracleV2Posted marks + approved native sources, jump limiter, TWAP ring buffer0xBA2Ce1Bdc435490FAe1F3F86E5D13B2efD81b50D
HedgeOutboxBridges moveToHedge USDC from the core to the HedgeVault on HyperEVM0x60Be77F5Fc150FD9d8460cdBB5eBFA4423E5C1d2
ReturnRouterReceives USDC coming back from HyperEVM and flushes it into the core (returnFromHedge)0x0DF6Cc062c3faf2D4c80208aBfd15836D828739c
DefaultPricingModulePluggable spread / skew pricing used by the core (owner-proposed, timelocked)0x3F18092d33803c3f32d3e30aaa941f37E0fEF0F1
VaultPricing (library)Linked pricing / risk-mode library the core DELEGATECALLs into0x07F739fbfc1C059f2fd6897Cc24f171952A3aB00
TimelockPending owner of TangentOracleV2 (acceptOwnership scheduled 2026-12-04); TangentVaultCore is transferred to it after the seed LP deposit0x7a07bE902eca6E11347E9f743F19ff2f8901B229
Contract (HyperEVM 999)RoleAddress
HedgeVaultHolds the hedge margin on HyperEVM; agent-controlled Hyperliquid account, coreWriter deposits / withdrawals0x32cc5d0CB5213a72604cCb0B5E81d0e2C93cDB38
L1ReadHedgeEquityReaderReads the HedgeVault's Hyperliquid equity through the L1Read precompiles (feeds hedgeEquityUsdE6)0x39ba3973e41c2D7AFb01b5Bf6F83BAe3127d4Fbd

Swap / SwapRFQ keep their V1 signatures (the volume index is unchanged). Queue events the app indexes for GET /api/pool/queue: WithdrawRequested(uint256 indexed id, address indexed owner, uint256 shares), WithdrawProcessed(uint256 indexed id, address indexed owner, uint256 shares, uint256 assets, bool isPartial), WithdrawCancelled(uint256 indexed id). Other new events: ExitTriggered(address by), DepositsFrozen(uint64 until, uint8 reason), ChangeProposed(uint8 indexed kind, uint256 value, uint64 eta) / ChangeApplied(uint8 indexed kind, uint256 value), ReserveAccrued(uint256 usdE6), HedgeLossAbsorbed(uint256 usdE6). New custom errors: UseQueue, MinHold, Exited, WithdrawalsOverdue, DepositCapExceeded(uint256 wantUsdE6, uint256 capUsdE6), EquityUnsettled, OracleBand, TooEarly, NothingPending, NotApproved.

Tokens

SymbolNameDecimalsHedged withAddress
USDCUSD Coin (bridged canonical)6—0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65
WHYPEWrapped HYPE18HYPE-PERP #1590xbA876237B0F021A6c6D852d6c26E107997cC5E81
UBTCUnit Bitcoin8BTC-PERP #00xe9c29585eae4b9a55b02a9605aea892b40d972e8
UETHUnit Ethereum18ETH-PERP #10x7a66a75fe41bc26867c17fe1bc7d1c076ebd4ecd
USOLUnit Solana9SOL-PERP #50xd78eC40Ac7412069cA0f223413c7E5E1d18f4315
PURRPurr18PURR-PERP #1520x46b131573Ca7c2674b652BbeB7FC16D530396aEC

Look-alike tokens exist on Elysium. Always match the address, not the symbol; GET /api/markets returns the canonical list from marketCount() / markets(id).

Hook pool (Uniswap v4)

PoolKey { currency0: 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65, currency1: 0xbA876237B0F021A6c6D852d6c26E107997cC5E81, fee: 0, tickSpacing: 60, hooks: 0xFE34Fb976Ab10c76050a77A0EAd3Adbb76062888 }
poolId   0xd5b875beda043c4d08fedc766b7f96d59dc1550f9106e248139d6774e3cf2f77
flags    BEFORE_INITIALIZE | BEFORE_ADD_LIQUIDITY | BEFORE_SWAP | BEFORE_SWAP_RETURNS_DELTA  (address suffix 0x2888)

PoolKey { currency0: 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65, currency1: 0xd78eC40Ac7412069cA0f223413c7E5E1d18f4315 (USOL), fee: 0, tickSpacing: 60, hooks: 0xFE34Fb976Ab10c76050a77A0EAd3Adbb76062888 }
poolId   0x90e9f036ab50450e4e74f2313c189f78fb6668c3bbfe3a04b772a5de216c23fa

Hook redeployed 2 December 2026 against V2 (target pool is immutable). The previous hook 0x49839D802b06ABDc6461e7B9259293B2CfbB2888 and its pool ids are retired and revert on swap.

Hook reads: maxNotionalUsdE6() per-swap cap, paused(), allowed(poolId). Hook errors: ExactOutputNotSupported, NotionalCapExceeded(notionalUsdE6, capUsdE6), Slippage(amountOut, minAmountOut), PoolNotAllowed(id), LiquidityNotAllowed, HookPaused, TangentPoolPaused, InsufficientFloat(token, amountIn, poolManagerBalance, hookBalance).

TangentPool: selectors

FunctionSelectorNotes
quote(address,address,uint256)0xb6466384view; returns (amountOut, midE8, spreadBps, protocolFeeUsdE6)
swapExactIn(address,address,uint256,uint256,address,uint256)0x1a019e37exact-input swap
marketCount()0xec979082
markets(uint256)0xb1283e77returns the Market struct
marketIdOf(address)0xc95f4ac4id + 1, 0 when unknown
inventory(uint256)0x4272ee18(tokenBalance, deltaTokens, deltaUsdE6, netDeltaUsdE6)
paused()0x5c975abb
riskMode()0x205600c8(mode, worstNetDeltaUsdE6, hedgeStale); mode 1 = reduce-only
hedgeIsStale()0x4247cbc7
freeUsdc()0xb7cd4efeUSDC available for sells / withdrawals
deposit(uint256,address) · withdraw(uint256,address,address) · redeem(uint256,address,address)ERC-4626-style LP flows
depositToken(address,uint256,address)in-kind LP deposit of a market token
previewDeposit · previewRedeem · previewWithdraw · convertToAssets · convertToShares · maxWithdraw · sharePriceE18 · totalAssets · navviews

TangentRFQ.fill((address,address,address,uint256,uint256,uint256,uint256,uint256),bytes) is 0xaff03d31.

Events

EventTopic0
Swap(address indexed sender, address indexed to, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 midE8, uint256 spreadBps, uint256 protocolFeeUsdE6)0x40997d238e11ae20f00d25adab0cd2ed389f5c94ccea812f68ceff69d92d7ad9
SwapRFQ(address indexed taker, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 midE8, uint256 spreadBps, uint256 protocolFeeUsdE6)0xcd8dcf108ca903ca66ec6f128ec04fa604fac5156850d93bb1501f69611af257
Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares)
DepositToken(address indexed sender, address indexed owner, address token, uint256 amount, uint256 valueUsdE6, uint256 shares)
Withdraw(address indexed sender, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)
HedgeReported(uint256 indexed id, int256 hedgeSize, int256 hedgeEquityUsdE6)
HedgeCapitalMoved(int256 deltaUsdE6, uint256 hedgeCapitalOutUsdE6)
MarketAdded(uint256 indexed id, address indexed token, uint32 perpIndex) · MarketParams(uint256 indexed id) · MarketPauseSet(uint256 indexed id, bool buyPaused, bool sellPaused) · PauseSet(bool)
RiskPolicySet(uint128,uint16,bool) · RfqSet(address,uint16,uint128) · RolesSet(address,address,address) · ProtocolShareSet(uint16) · ProtocolFeesClaimed(address,uint256)

For a Swap, sender is the caller of swapExactIn (a router, the hook, or an EOA) and to is the recipient. Fills through the v4 hook have sender = TangentHook.

Custom errors

// pool / quoting
error InvalidPair(); error MarketDisabled(); error DirectionPaused(); error Paused(); error ZeroAmount();
error TradeTooLarge(uint256 usdE6, uint256 maxUsdE6);
error InventoryLimit(int256 invAfterUsdE6, uint256 maxUsdE6);
error InsufficientLiquidity(uint256 want, uint256 have);
error ReduceOnly(int256 netDeltaUsdE6, uint256 maxNetDeltaUsdE6);
error Slippage(uint256 out, uint256 minOut); error Expired();
// rfq
error NotRfq(); error RfqPriceOutOfBounds(uint256 amountOut, uint256 minOut, uint256 maxOut);
// admin / accounting
error NotOperator(); error NotGuardian(); error MarketExists(); error UnknownMarket(); error InvalidParams();
error HedgeCapExceeded(uint256 wantOutUsdE6, uint256 capOutUsdE6);
error NotOptions(); error OptionsLiabilityCap(uint256 liabilityUsdE6, uint256 capUsdE6);
// oracle (bubbles up through quote / swap)
error StalePrice(); error PriceDisagreement();

Verifying the hedge

The Hyperliquid account that carries the hedge is returned by GET /api/pool → roles.operator and GET /api/risk → hlAccount; its positions are public on the Hyperliquid explorer and should mirror inventory(id).tokenBalance per market with the opposite sign. The Transparency page shows both side by side.