Open the app

Contracts on Elysium

Elysium, chain 99901, gas in HYPE. RPC https://rpc.elysium.kinetiq.xyz.

TalosPool (USDC)0xbc65E637D7C1649c9ce5b25aCED5F3f6E87D224d
TalosPool (HYPE)0x5414c0a5615B3DCCDEF2ca331bac75572BE39487
TalosVerifier0x015a6b5f63d331Dd13a797255A5B64B43fe16210
TalosSwap0x6C8f2FD8d347BE43f92957D4A9DbB7BfF24A7Cc0
TalosFees0xDe3BE457765688587a9D5389703Cae61Ba6c0E15
TalosStaking0xA4920e3c7e75Ac3EA12079753931Ab72a8450Cd4
Poseidon, 2 inputs0x99971625Ccf7270280eA4cd017287987925bb798
Poseidon, 3 inputs0x649E64DAB15097D0f37847040b30607ED9f6F70b
USDC0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65
Uniswap v4 PoolManager0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1

TalosPool

One per asset (USDC, or native HYPE). transact(proof, extData) shields (extAmount above zero), moves inside the pool (zero) or exits (below zero). The contract checks the root against its last 128, that both nullifiers are unspent, that extDataHash matches the call, that the public amount matches extAmount and the fee, and the Groth16 proof. Then it records the nullifiers, inserts the two commitments and moves the asset.

With an action, the exit goes to an approved action contract, which the pool then calls with the action bytes. depositNote lets an action contract write a note whose amount is only known on chain. Events: NoteAdded, NullifierUsed, OpenNote, Deposited, Withdrawn, ActionRun. Views: isKnownRoot, getLastRoot, nextIndex, nullifierSpent, totalShielded, hashExtData.

TalosVerifier

The Groth16 verifier for the circuit, generated from the verification key on The circuit page. Both pools use it.

TalosSwap

The private swap action. Called by a pool with the bound action, it swaps the whole input on one Uniswap v4 pool through the PoolManager, checks the output against minOut and the deadline, and pays the output into the other pool with depositNote. It holds nothing between transactions. Event PrivateSwap.

TalosFees and TalosStaking

TalosFees receives the exit fees. distribute(), open to anyone once staking has its token, sends half of the USDC to TalosStaking and half to the treasury; HYPE fees are converted to USDC before the split. TalosStaking: stake $TALOS, earn USDC, unstake and claim at any time.

Owner exit

Every contract has sweep(to, tokens) for the owner. On a pool it only reaches the balance above totalShielded; on TalosStaking it leaves stakes and owed rewards. Notes, stakes and owed rewards always keep their own exit.