The exit tool
Two files you download and keep: a page and a command that get your strategies' money to your wallet with your own key and your own RPCs, whether or not DLTX is still running.
The exit tool is how you get your money out of DLTX's contracts without DLTX. It is one web page
(dltx-exit.html) and one command (dltx-exit.mjs), both built from the same code. Give it your
wallet's address and an RPC of your own per chain: it finds your strategies on the chain, works out
which steps are possible now, asks the chain whether each would succeed before offering it, and
sends them with your wallet. It never asks DLTX for anything: no DLTX site, server, relayer or key
is involved.
The contracts, not the tool, decide who may do what and where money goes. Your wallet owns your
strategies, and it is the only address their money can be paid to. The tool never takes a
destination as an input, and every command that moves money prints your wallet's address in full
before it asks you to type yes.
What it does
- Finds your strategies from your wallet's address alone, in the builder's records on every chain you give an RPC for, and checks each contract's address against the one computed from the wallet that created it. It reads each strategy's hub on the chain its kind names, and its legs on theirs.
- Stops everything: one signature from your wallet that stops every strategy you own, on every chain. It names each contract at its run and its count of stops, so it acts once at each; sign it again for one you allowed to run again since.
- Stops one strategy, or one leg: your wallet's own transaction at its hub, or at the leg, on that contract's chain.
- Drives the unwind: every step anyone may send, on Ethereum, Arbitrum and HyperEVM: closing the positions, repaying the debt, completing Circle's transfers, paying your wallet. One wallet prompt each.
- Closes in pairs where your Hyperliquid leg's release has the sized close, as DLTX would: the lending leg sells at most about $95,000 of its asset at a time, and the Hyperliquid short is bought back by what was sold before the next sale, so the two legs never stand more than one pair apart. A pair the short has not matched within two minutes is closed whole, as an older leg closes. On an older leg the close is not paired; upgrade it in the DLTX app while DLTX runs.
- The escape hatch: after 7 days and 1 second without a DLTX check-in, it stops what still runs, with no signature at all, and finishes the exit with the same steps.
- The local exit: once the escape hatch is open, each leg with no position left pays everything it holds on its own chain straight to your wallet there, with no bridge and no fee; anyone may send it. A Hyperliquid leg's money on Hyperliquid goes to your own Hyperliquid account. Hyperliquid applies such a transfer later, or drops it, so the tool sends again what is still there once Hyperliquid had time, until the leg's balances read empty.
- Recoveries only you can start: releasing a debt reserve, resetting a forged report, repaying a debt with your own USDS, topping up a leg's HYPE, and topping up a leg's HyperCore USDC from your own Hyperliquid account when its first transfer out would be dropped (a few cents, shown first).
It does not add money, upgrade anything or change a strategy's settings. Those stay in the DLTX app.
What works with DLTX gone, and what does not
| Situation | What the tool does |
|---|---|
| DLTX is unavailable: no website, no server, no check-ins | Every dollar of every strategy reaches your wallet, on each kind DLTX offers, but for the two limits below. Your wallet signs the Stop; after the escape hatch, no signature is needed. |
| Circle is down for good | It stops every strategy, closes every position and repays every debt on its own chain, and pays your wallet everything at each hub. Once the escape hatch is open, each leg's local exit pays you what it holds on its own chain. Money already sent through Circle and not yet delivered stays where it is: the tool lists each amount (its chain, its leg, and its burn transaction) and never says done. |
The two limits:
- If Circle is down for good, money Circle holds stays there. A transfer Circle never attests is never delivered. The tool shows exactly where that money waits. Before the escape hatch opens, a leg's USDC also waits for Circle to bring it home.
- A halted USDS route is repaid with your own USDS. If the converter a long leg repays its USDS
debt through is halted and the leg holds no USDS, the unwind cannot repay.
repay-debtrepays the leg's debt with your own USDS on Ethereum (the amount is shown, plus a small margin the lending market does not take), then the unwind goes on. The money freed returns to the strategy as profit above the high-water mark, so DLTX's performance fee applies to it. If you do not repay, the money waits for the converter to reopen.
What you need
| Strategy | RPCs | Gas, for whoever sends a step |
|---|---|---|
| Aave on Arbitrum with Hyperliquid | Arbitrum, HyperEVM, and its hub's chain | ETH on Ethereum and Arbitrum, HYPE on HyperEVM |
| Aave on Ethereum with Hyperliquid | Ethereum, HyperEVM, and its hub's chain | the same |
| Spark with Hyperliquid | Ethereum, HyperEVM, and its hub's chain | the same |
- Your wallet's key, an ordinary (ECDSA) one, an EIP-7702 wallet included. It signs only in the
domain of DLTX's owner messages, which names no chain, so your wallet signs on whatever network it
is on, and a signature costs no gas. It sends these transactions from your wallet, each on its
contract's chain:
stop,release-reserve,reset-reports,repay-debt(which spends your USDS on Ethereum),top-up-hype(which spends your HYPE) andtop-up-usdc(which spends your own Hyperliquid account's USDC). Every other step may be sent by any key holding gas. - Your own RPCs, one per chain. The tool has no default provider. A strategy's hub may live on Ethereum, Arbitrum or HyperEVM, and the tool finds your strategies only on the chains you give an RPC for: give one for each of the three. It names any chain it could not search, and never says done until it can.
- Circle, for moving USDC between chains: its public attestation service by default. Its transfers take minutes, and the tool waits.
A Safe or another contract wallet owns only a strategy whose every contract is on one chain. The tool
signs nothing for it: it prints the transactions its own interface can send (--external), and
every step anyone may send still works.
Download both files now, and keep them
Do this while DLTX works, not when you need it. The tool is published on DLTX's public repository,
github.com/dltx-org/exit: each release has three files,
dltx-exit.html, dltx-exit.mjs and SHA256SUMS. Download all three and keep them somewhere of
your own. With them, your wallet's address and its key are all you need.
Both files are readable, unminified code, carry no source comment, need no dependency and make no request to DLTX, so you or anyone you trust can audit them. Builds from one source are byte-identical.
Check the files
shasum -a 256 -c SHA256SUMS # on Linux: sha256sum -c SHA256SUMSEach line must read OK. Compare the hashes with the ones below and, if you can, with a second
source (a friend's copy, a rebuild). A copy that does not match is not the tool.
The current release
| Release | not published yet |
SHA256 of dltx-exit.html | not published yet |
SHA256 of dltx-exit.mjs | not published yet |
Open it
- The command needs Node 22 or later and nothing else:
node dltx-exit.mjs status …. - The page: browser wallets do not connect to a page opened straight from disk (
file://). Serve it on your own computer withnode dltx-exit.mjs page, and open the address it prints, alwayshttp://127.0.0.1:47190/(or--port <n>), so the browser keeps the page's settings. Use a browser with a wallet that injects itself (MetaMask, Rabby, Frame). Every step runs from the wallet it started with: switch wallets in the middle and the page stops, and a step that spends your own money runs only from the owner's wallet.
The commands
node dltx-exit.mjs status --owner <address> --rpc-1 <url> --rpc-42161 <url> --rpc-999 <url>
node dltx-exit.mjs stop-all --owner <address> --rpc-1 <url> ... --key-file <path>
node dltx-exit.mjs run --watch --owner <address> --rpc-1 <url> ... --key-file <path>| Command | What it does |
|---|---|
status | Prints your strategies, their contracts, and every step now possible. Sends nothing. |
run [--watch] | Sends every step anyone may send. --watch looks again each minute until nothing is left, and stops on a wait only you can clear. |
stop-all | Signs one Stop for every strategy you own and submits it to each contract it names. |
stop <hub or leg> | Stops one strategy, or one leg: your wallet's transaction at that contract, on its chain. |
release-reserve <hub> | Releases the cash the hub keeps for the legs' debts, when a leg's report does not come; the words name the debt each leg leaves. |
reset-reports <hub> <member> | Resets a leg's reports after one forged ahead of its own, then sends the leg's report. |
repay-debt <leg> | Repays a long leg's USDS debt with your own USDS, when its converter is halted. |
top-up-hype <leg> | Sends the Hyperliquid leg the HYPE its transfers need, from the sending wallet. |
top-up-usdc <leg> | Sends the Hyperliquid leg a few cents of USDC from your own Hyperliquid account, when its first transfer out would be dropped. |
retry <leg> | Tries a quarantined leg's unwind step again, after the automatic retries stopped. |
local-exit <leg> [<token>] | Once the escape hatch is open, pays a flat leg's money to your wallet on its chain; with a token, that one token. run sends the local exit by itself. |
page | Serves the page on 127.0.0.1. |
The options
| Option | What it sets |
|---|---|
--owner <address> | Your wallet: the owner of the strategies. Required. |
--rpc-1, --rpc-42161, --rpc-999 <url> | Your RPC on Ethereum, Arbitrum and HyperEVM: at least one, and one for every chain your strategies use. Never printed. |
--rpc-check-<chain id> <url> | A second RPC per chain, asked again before every signature. |
--hub <address> | A hub to read, proven against the builder's records (repeatable); without it, the tool finds every hub your wallet created. A strategy another wallet created and handed to you is found only so. |
--from-block-<chain id> <n> | Where on that chain the search for your hubs starts. |
--max-fee-<chain id> <amount> | Raises the most one transaction's fees may cost on that chain, in its coin. |
--private-relay <url> | Where an Ethereum swap is sent (repeatable, in order). |
--iris <url> | Replaces Circle's attestation service. |
--since <time> | How far back, in unix seconds or a date, to look for transfers in flight. |
--burn <chain id>:<transaction> | A Circle transfer you sent to your strategy from your own wallet, which the tool cannot find by itself: it completes it and waits for it. |
--key-file <path> | Your wallet's key, in a file only you can read. Without it, a hidden prompt asks. |
--external | Prints each message or transaction to sign elsewhere (a hardware wallet, a Safe's interface), with its gas and fees, and takes the result back. |
--yes | Sends each transaction without asking yes for it; its bounds are still printed. |
--watch | With run: look again each minute. |
--port <n> | With page: the port to serve it on. |
A key is never taken from the command line or the environment, and never printed. The commands and options of earlier releases are refused by name.
Exit codes
dltx-exit --help prints them too.
| Code | Meaning |
|---|---|
| 0 | Done, or nothing more anyone can send: what is left needs your signature, or time. |
| 1 | A step, a read or a signature failed; the words printed say which. |
| 2 | The command was not understood. |
| 3 | run --watch stopped on a wait only you can clear: an RPC to give, gas, a key to connect. Its words are printed; act on them and run it again. |
Every wait is one of two kinds. Waits that end by themselves (Circle's attestations, money in
transit, a report on its way, the Hyperliquid band widening, a paired close waiting for its other leg, the
escape hatch's days, a lagging RPC)
keep run --watch looking. Waits only you can clear stop it.
The fee bound
Every transaction the tool sends is estimated first, then bounded, then shown to you: its gas
limit, its fee cap and the most it can cost. The fees of one transaction may cost at most, whatever
the RPC says the fees are: 0.06 ETH on Ethereum, 0.01 ETH on Arbitrum and 0.05 HYPE on
HyperEVM. The gas limit is the estimate plus a fifth, never above the chain's own cap or
3,000,000. An unwind step at a lending pool is the one exception: it goes with at least 3,500,000
gas, or 5,900,000 on Arbitrum, what the step needs to record a failed attempt, and its bound is that
floor plus a fifth, within the chain's own cap. Arbitrum takes no tip, so none is paid
there. In a fee spike a send is refused until you raise that chain's ceiling (--max-fee-<chain id>,
or the page's field). A coin a step sends on purpose (a HYPE top-up) is the step's, not a fee. A
transaction your wallet sends with other gas or fees than the ones shown stops every later send of
the session.
HyperEVM's small blocks suffice: every call the tool may send there fits one. A step estimated above a small block is refused by name, not sent.
Private sending on Ethereum
A swap sent through a public RPC can be sandwiched. When a strategy's long leg is on Ethereum (Aave
on Ethereum or Spark), its unwind sells there, and the tool sends each such step to a private
relay only: Flashbots Protect, then MEV Blocker, or your own (--private-relay <url>, repeatable,
in order, which replaces them). The command refuses to send such a step with no relay; your Ethereum
RPC is never used for it. The page cannot choose how your wallet sends: it asks whether your
wallet's Ethereum network is set to a private relay, and otherwise shows the command to run. It asks
again whenever you connect another wallet, and never keeps the answer.
What one RPC can prove
Every check the tool makes on one RPC's answers protects you against a stranger's contract, a wrong address and an honest RPC's mistakes. It does not protect you against that RPC lying. Your protection against a lying RPC is:
- a second RPC of your own per chain (
--rpc-check-<chain id>, or the page's check field), asked again before every signature for each contract's run, count of stops and owner generation; a disagreement refuses the signature; - the Stop's own limits: a contract refuses a Stop whose count of stops or owner generation is not its own, and one naming another run acts only on that run, until its deadline an hour later. A wrong figure costs the signature, never money;
- the addresses derived locally from the wallet that created the strategy, never read from an RPC's answer;
- the targets shown in full before every signature: read them.
With no check RPC, the tool says the figures rest on one RPC each. An RPC that answers for another chain is refused; one more than two minutes behind offers nothing on its chain until it catches up.
Circle's waits
Money between chains moves by Circle's USDC transfer. The tool finds every transfer from your
strategies' own logs, asks Circle for its attestation and delivers it to the contract it is
addressed to. A transfer Circle has not attested yet is a wait, never an error: leave
run --watch running. An expired attestation is asked for again. A transfer you sent from your own
wallet to one of your strategy's contracts leaves no trace the tool can search for: name it with
--burn (or the page's field).
While Circle is unreachable, every step that needs no Circle still goes: the stops at each leg, each leg's own unwind and the repayment of its debt on its own chain, the hub's payments of what is already at the hub, and, once the escape hatch is open, each leg's local exit. If Circle stops for good, the tool shows each amount that waits on it: its chain, its contract, and its burn transaction when there is one. See if Circle stops.