Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions contracts/token-vault/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down