From d5ee4cedda1c918d49b722f9a8220bfb79211210 Mon Sep 17 00:00:00 2001 From: Danitello123 Date: Mon, 31 Aug 2026 11:00:41 +0100 Subject: [PATCH] token-vault: add permissionless keep_alive to bump instance TTL while paused (#413) --- contracts/token-vault/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contracts/token-vault/src/lib.rs b/contracts/token-vault/src/lib.rs index 328245f8..2008a44e 100644 --- a/contracts/token-vault/src/lib.rs +++ b/contracts/token-vault/src/lib.rs @@ -316,6 +316,14 @@ impl TokenVault { Ok(()) } + /// Permissionless keep-alive: extend the vault instance TTL so a paused + /// vault can be kept warm during long investigations without requiring + /// the owner to re-open the contract or submit a `RestoreFootprint`. + pub fn keep_alive(env: Env) -> Result<(), Error> { + bump_instance(&env); + Ok(()) + } + /// Read-only: whether the vault is currently under an emergency pause. pub fn is_paused(env: Env) -> bool { is_paused(&env)