Skip to Content

Exit without DLTX

Step by step, every call to stop a strategy, unwind it and have it pay your wallet yourself, with nothing from DLTX.

This page is the hands-on companion to Exit: the same unwind, as the calls you or anyone you trust can make, with no DLTX website, server or key involved. Whoever makes the calls, the money goes only to your wallet, the strategy's owner. No call on this page takes a destination.

Tip

You do not have to make these calls by hand. The exit tool is a page and a command, built from the same contracts, that finds your strategies from your wallet's address, works out which of these steps are possible now, asks the chain whether each would succeed, and sends them with your wallet and your RPCs. Download it now, while DLTX works.

Before you start

  • Your wallet. The wallet that created the strategy is its owner. It signs (or sends) the Stop and the recoveries below; every other step is anyone's. A strategy DLTX offers is owned by an ordinary (ECDSA) wallet, an EIP-7702 one included.
  • Gas. On each chain a strategy lives on, that chain's coin: ETH on Ethereum and on Arbitrum, HYPE on HyperEVM. Whoever sends a call pays its gas. A signed message costs nothing to sign.
  • A way to send transactions. A block explorer's Write Contract tab, once the contracts are verified, or any wallet or tool that can call a contract and sign EIP-712 typed data.
  • Your contracts' addresses. A strategy's hub lives on the chain its kind names for it, each leg on its own chain. The builder on each chain announces each contract it creates there with a MemberCreated event, which names its owner: your hubs are the ones with your wallet as owner and index 0 (the builder). The hub's members() lists the hub and then its legs, and memberInfo() gives each leg's chain as a Circle domain (Ethereum 0, Arbitrum 3, HyperEVM 19).

Your wallet's signed messages use the EIP-712 domain DLTX Owner, version 1, with no chain id and no verifying contract: your wallet signs on whatever network it is on. Each message names the contract and the chain it acts on, so it acts nowhere else.

1. Stop

Every hub and leg answers the owner's Stop through its kernel: it revokes DLTX's execution key there and begins unwinding. It takes no nonce, and acts once: the member's count of stops must rise.

From your wallet. Call ownerStop() at the hub, on the hub's chain, and at each leg on another chain, on that leg's chain. The hub stops each leg beside it on its own chain and tells each remote leg by a fast Circle message; if Circle refuses one, anyone may send it again with tellStop(k). Your own call at a remote leg does not wait for Circle.

One signature for everything. Sign one Stop: a list of items, each a chain, a contract, the run it records and its count of stops (its control()), its owner generation (generation()), and a deadline. Name the hub and every leg off the hub's chain, of as many strategies as you like. Anyone submits it at each contract, on its own chain, with ownerStopSigned(s, sig); each takes the item that names it. A Stop once applied is refused there (StaleStop).

A leg funded before its first run. A remote leg that holds money but records no run takes the owner's Stop too, at run 0: your ownerStop() there, or an item naming its run 0. The hub ignores the tell of a run 0. Once the escape hatch is open (below), its local exit pays you what it holds.

2. The unwind's steps

Every step is public, harmless to repeat and refused until it applies. Repeat them until the strategy settles.

WhereCallWhat it does
Hyperliquid leg (HyperEVM)unwindStep()Closes the short with reduce-only orders within the band (which widens every 6 hours), moves margin back, buys the HYPE its transfers need, sells leftover tokens, sends its USDC home.
Hyperliquid legsendHome()Sends the leg's USDC on HyperEVM to the hub over Circle, without reading HyperCore.
Hyperliquid legreport()Sends the hub the leg's report: what it holds and what it still owes. Anyone may send it once the leg is stopped.
Aave legunwindStep(debtChunk, assetChunk)Sells its reward, repays the debt, withdraws, sells the asset within the band, sends its USDC home; 0, 0 means all. Repeated until it is sold.
Aave legsendHome(), report()Sends its USDC to the hub, all but what still repays its debt; reports to it.
A remote legtellHub()Tells the hub of a stop it was not told of (your own Stop at the leg, or the escape hatch's).
Hub (its kind's chain)unwindStep()Stops each leg on the hub's chain, sends its free USDC to each leg that owes debt, then pays the rest to your wallet, DLTX's fee taken on the way.
HubtellStop(k)Sends the hub's stop again to remote leg k.

Circle's deliveries. USDC and messages between a strategy's chains travel by Circle's transfer (CCTP). Each transfer is completed on its destination, by anyone, once Circle has attested it:

  1. Fetch the attested message from Circle's attestation service, https://iris-api.circle.com/v2/messages/<source domain>?transactionHash=<the burn's transaction>.
  2. Pass the message and its attestation to receiveMint(message, attestation) on the contract it is addressed to: the hub or a leg. Only that contract can complete it.

Whoever delivers it pays the gas on the destination.

3. Settle and get paid

WhereCallWhat it does
HubunwindStep()Pays your wallet everything beyond what the legs still owe.
HubfinishIfSettled()Ends the unwind and the run once every leg is settled and nothing is in flight.
HubpayHome()Pays your wallet what reached the hub after the run ended: fee-free up to the high-water mark, DLTX's fee on its part above it.

The hub reads settled() and free(): once settled, the strategy is empty and stays yours, ready to fund again.

The escape hatch

If DLTX stops checking in for a group of strategies for 7 days, no signature is needed. Once the registry's stopped(group) is true, anyone may call stopStopped() on the hub and on each leg that records a run. Each stops as your Stop does, and a leg then tells its hub (tellHub() if the telling failed). Then continue with steps 2 and 3: the money still goes only to your wallet.

The local exit. Once the hatch is open, a stopped leg also pays you on its own chain, with no bridge and no fee: anyone may call localExit() at an Aave leg once it holds no debt (its USDC, aTokens, asset, reward and USDS go to your wallet), or at the Hyperliquid leg once it is flat (its USDC and HYPE on HyperEVM to your wallet, its HyperCore spot balances to your own HyperCore account), and localExitToken(token) for any other token a leg holds. The hub still settles only on the leg's next report, or once you release its debt reserve (below).

When a step needs your own money or signature

  • A remote leg funded before its first run. Stop it at run 0, as in step 1. If DLTX is still running, your wallet's recordRunByOwner(runEpoch, group) at the leg gives it the hub's run instead (the leg must hold no open position), and the unwind brings its money home; once the escape hatch is open, its local exit pays you.
  • A halted USDS route. A long leg on Ethereum that borrows USDS repays it through a converter to USDC. While the converter is halted and the leg holds no USDS, its debt cannot be repaid, and the strategy cannot settle. You may repay it with your own USDS on Ethereum, on the leg's behalf: at the lending market's pool, approve the pool for the amount, then repay(USDS, amount, 2, the leg's address), and the unwind goes on. Money freed that way returns to the strategy as profit above the high-water mark, so DLTX's performance fee applies to it. Otherwise the money waits for the converter to reopen.
  • Leftovers a leg could not sell. When DLTX has stopped checking in for the strategy's group (the registry reads it stopped) and the leg is stopped with no debt, anyone may call its localExit() or localExitToken(token): what it still holds goes to your wallet, each token as far as its transfer succeeds, with no fee.
  • HYPE for the Hyperliquid leg. The leg buys the HYPE its HyperCore transfers need from its own USDC. When it holds too little for a purchase, its cash waits, and anyone may send it HYPE with topUpHype(amount), the HYPE sent with the call.
  • A debt reserve held for a leg. During the unwind the hub keeps cash for what each leg last said it owes. If a leg's report never comes, your wallet may call releaseDebtReserve(): the next step pays that cash to you, and a debt still real at the leg is left to the leg's own unwind.
  • A report too far ahead. A report forged ahead of the leg's own (a failure of Circle) holds the leg's later reports back. Your wallet calls resetReports(k) for that leg (k is its place in the hub's memberInfo() links, counted from 0), and the leg's next report is kept.

If Circle stops

Circle's bridge is the only way money moves between a strategy's chains. If Circle stops for good, stop and unwind as above: every leg still unwinds and repays on its own chain, and everything on the hub's chain still reaches your wallet. Once the escape hatch is open, a remote leg's local exit pays you what it holds on its own chain; money Circle burned and never minted stays lost to the bridge. The exit tool shows each amount, its chain, its contract and its burn transaction when there is one. See if Circle stops.

On this page