Skip to main content
Emergency withdrawal of a vault’s funds out of a strategy and back into the vault, where only users can withdraw them. Rescue is for when an underlying protocol becomes risky. It unwinds the position, returns the capital to the vault as idle funds, and pauses the strategy so nothing is invested back into it. User withdrawals stay open throughout: no role can freeze them. Only the Vault Manager or the Emergency Manager can call it. See Vault Roles.

Running it

Rescue from the Console

The fastest path in an emergency: open your vault at console.defindex.io and trigger the rescue from the Admin tab, signing with the connected Manager or Emergency Manager wallet.
Ready-made scripts are in paltalabs/defindex-rescue, which also covers rebalancing idle funds:
The scripts can either sign and submit with a secret key, or build and simulate the transaction and write the unsigned XDR to a file, for a hardware wallet or a multisig to sign. Set VAULT_ADDRESS and one of SIGNER_SECRET or SIGNER_PUBLIC_KEY. To call the contract method yourself, see Vault Administration.