New here? Start here: 1 set up roles → 2 set caps → 3 guardian → 4 sweep if something's wrong

Emergency sweep

Something feels wrong? The owner or the guardian can move the guard's full balance of one token to the cold exit account.

Reading guard state from chain...
Where the money goes
The exit account was fixed when the guard was initialised. No method in the contract can change it, so a stolen owner or guardian key can't redirect a sweep.
from guard · holds ...
guard.myvirusmy.testnet
to exit · holds ...
...immutable
Sweep a token
One token per call, full balance. Signed by the owner or guardian with 200 Tgas (the contract requires 180-250).
The exit account must be registered with the token contract (storage deposit). If it isn't, the transfer fails and the funds stay in the guard. A sweep is not a guarantee of withdrawal: it depends on the token contract accepting the transfer.
Lifecycle
Steps light up from the real transaction receipts after a sweep. Nothing here is animated or simulated.
  1. 1Sweep started a sweep lock is set for this token; agent payments in it are refused while it runs
  2. 2Balance read the guard asks the token contract for its full balance
  3. 3Transfer to exit the whole balance is sent to the exit account; no other destination exists in the code
  4. 4Finished the lock clears, with a status: transferred, zero_balance, transfer_failed or balance_query_failed