Skip to Content

Exit

How a strategy is stopped, unwound and paid to your wallet, with DLTX's help or without it, and what can slow it down.

There are two ways to take money out of a strategy, and they are different.

  • Withdraw part takes an amount out of a running strategy. Your wallet asks the hub for it, DLTX takes it out of the legs in proportion, and the hub pays your wallet. The strategy keeps running with what is left.
  • Withdraw everything (in the app, Stop and withdraw everything) is the strategy's Stop. DLTX's execution key can no longer act on it, and it unwinds: every leg closes its position by fixed, public rules, and the hub pays every dollar to your wallet when the strategy settles. This page is about it.

Either way the money is paid to your wallet, the strategy's owner, and nowhere else. A strategy is never "closed": once it has settled it is empty, and you can fund it again at the same addresses.

The rules of an unwind

  • Anyone may push it forward. Every step is a public function that anyone may call, and every step is harmless to repeat. A caller chooses no amount, price or destination. A stalled caller costs time, and time in an unwind carries market risk (below).
  • It reduces only. The unwind never grows a position. DLTX's execution key is out of the loop: the unwind runs on fixed rules, whoever sends the steps.
  • The money goes to one place. Each leg sends its USDC to the strategy's hub, and the hub pays your wallet, DLTX's performance fee taken on any profit above the high-water mark. The one exception stays inside the strategy: before paying you, the hub sends a long leg the USDC that repays its debt.
  • No one chooses the price. Every sale a long leg makes fills only within a band of the lending market's oracle price. The short leg closes with immediate-or-cancel orders around Hyperliquid's oracle price; that band widens every 6 hours, up to 10%, while orders go unfilled, so a stalled close eventually completes.
  • It ends by itself. The unwind ends once the strategy is settled: every leg settled, nothing in flight between its contracts, and nothing but dust at the hub. A token the venue cannot sell at that moment is quarantined: it stays at the leg, may be offered for sale again by anyone, and does not hold the unwind open. A Hyperliquid leg may also keep up to 1 USDC on HyperEVM and 1 USDC on spot: it stays the leg's, counts in the next run, and does not hold the unwind open.
  • Once DLTX is gone, each leg pays you on its own chain. Once DLTX has stopped checking in for the strategy's group (the registry reads it stopped, as for the escape hatch) and a leg is stopped, anyone may call its local exit: an Aave leg with no debt left (localExit()) pays your wallet what it holds as it is, a flat Hyperliquid leg (localExit()) its USDC and HYPE, and its HyperCore balances to your own HyperCore account, with no bridge and no fee. While DLTX runs, the leftovers stay at the leg, where anyone may sell them later and the fee applies above the high-water mark as for any sale.
  • What the exit tool says at the end. Every dollar recovered; or what is left and where: USDC too small to send (a Hyperliquid leg's HyperCore spot USDC under the 1 USDC it keeps among it), and a token a Hyperliquid leg holds that is worth under Hyperliquid's $10 minimum sale even at its price (HYPE above its fee reserve, a stablecoin), which no sale can bring home until it is worth more.
  • Late arrivals are paid home. Money that reaches the hub after the strategy settled, a late transfer or a sale finished later, is paid to your wallet by anyone's payHome. Nothing starts again.

What happens, in order

  1. Stop. Your wallet stops the hub: Withdraw everything in the app, the exit tool, or a call of your own. The hub revokes the execution key, begins unwinding and drops every setting change and fee raise still waiting. It tells a leg on its own chain by a call and a remote leg by a fast Circle message; if Circle refuses one, anyone may send it again. Your own Stop, signed once for the hub and every remote leg or sent at each, also stops a remote leg directly at its chain, without waiting for any message.
  2. The short leg unwinds. It closes the position with reduce-only orders within its band, moves its margin back, sells its leftover tokens for USDC, and sends its USDC home to the hub over Circle. It then reports to the hub what it still holds and owes.
  3. Circle attests the transfer, and anyone may complete the mint to the hub on its chain.
  4. The hub repays the long's debt first. It sends the long leg the USDC its debt needs, then pays the rest to your wallet. The short's cash repays debt without selling any of the asset into a falling market.
  5. The long leg unwinds. It sells any reward for USDC within its bound, repays its debt (from its USDC, then with its own collateral where it must), withdraws everything once the debt is zero, sells the asset within the band, and sends its USDC to the hub. A sale the band does not let through waits for a later step, so a large position takes several steps.
  6. The hub pays your wallet. Each step pays everything it holds beyond what the legs still owe, DLTX's fee taken on the way. It waits for no leg: what arrives later is paid by a later step.
  7. It settles. Once every leg is settled and nothing is in flight, anyone's call ends the unwind and the run. The strategy is empty.

With DLTX, and without it

With DLTX, you press Withdraw everything in the app, and DLTX sends every step. The app shows the unwind's progress and says when a step waits (for example, while Circle's bridge is paused).

Without DLTX you need nothing from it. Your wallet signs or sends the Stop; every other step is public, and the money still goes only to your wallet. The exit tool does all of it from your own computer with your own RPCs, and Exit without DLTX lists every call it makes. If DLTX has stopped altogether, the escape hatch needs no signature at all after 7 days.

One Stop for every strategy

One signature from your wallet stops every strategy you name, at every hub and every remote leg: a Stop whose items each name a contract on its chain, at the run it records and its count of stops. Each contract takes its own item once: a Stop already applied there is refused. Anyone may deliver the signed message, at each contract on its own chain, and a leg funded before its first run takes it too. Each strategy then unwinds as described here, and pays your wallet. See stopping a strategy.

The market while it unwinds

An unwind is safe for your control of the money: from its first step, the money can go nowhere but your wallet. It is not free of the market. The short leg closes its position early, and a long leg unwinds as its sales allow, so between the two the strategy holds a leveraged position with no hedge:

  • Until the short's cash reaches the hub, a few minutes (longer if Circle's bridge is paused), the long leg is as close to liquidation as it was when the unwind began.
  • Once the hub has sent it that cash, part of its debt is repaid without any sale. The long is still leveraged, and unhedged, until it has unwound.
  • The rest of the debt is repaid with its own collateral, priced within the band. In a crash the pool can sit further than the band from the oracle; the sales wait meanwhile, and the lending market's own liquidation stays the last resort.
  • Asset not yet sold once the debt is gone is ordinary price risk until the pool is back near the oracle.

What can slow an unwind down

  • Circle's bridge. A remote leg's USDC reaches the hub only over Circle's bridge. If Circle pauses it, that part of the unwind waits; what is already at the hub is paid. If Circle stops for good, money on other chains stays there: see if Circle stops.
  • A pool away from the oracle. A long leg sells only within the band: while the pool is further from the oracle price than the band, its sales wait, and a large position sells over several steps.
  • Quarantine retries. Money a leg could not sell or move after several attempts is quarantined. It stays the leg's, and anyone may try the leg's unwind step again later, once the market allows it. The exit tool retries a quarantined leg once an hour.
  • HYPE on Hyperliquid. The short leg needs a little HYPE to move its USDC off HyperCore. It buys it from its own USDC; when it holds too little USDC for that, anyone may send it HYPE.
  • A halted USDS route. A long leg that borrows USDS repays it through a converter to USDC. While the converter is halted, the leg cannot repay on its own: you may repay the debt with your own USDS on the leg's behalf, or wait for the converter to reopen. Money repaid that way returns to the strategy as profit above the high-water mark, so DLTX's performance fee applies to it.

On this page