🗓️Week 4 – Emergency Protocols
Goal: Test what happens in emergency scenarios like hacked wallets, locked vaults, and recovery procedures.
Quest 1: Lock Your Vault (Emergency Freeze) (10 minutes)
What you're doing: Using the emergency lock feature to freeze your vault.
The Scenario: You think your wallet might be compromised. You want to freeze everything immediately.
Understanding Lock:
FREEZES all deposits and withdrawals
Can be triggered by vault owner OR any guardian
Prevents the hacker from moving assets
Can be unlocked later with guardian approval
Trigger the Lock:
Go to "Emergency Controls"
Click the big red "🔒 LOCK VAULT" button
Confirm you understand (read the warning)
Approve the transaction
Your vault is now LOCKED 🔒
What happened:
All pending requests (except unlock) are automatically cancelled
No new deposits allowed
No new withdrawals allowed
You'll see "LOCKED" status everywhere
Try these (they should fail):
Try to deposit tokens - ❌ Blocked
Try to request withdrawal - ❌ Blocked
Try to transfer assets - ❌ Blocked
Good! Your assets are frozen and safe.
✅ Quest Complete! You've frozen your vault.
Quest 2: Unlock Your Vault (10 minutes)
What you're doing: Unfreezing your vault after the emergency is over.
The Scenario: You've secured your wallet, changed passwords, etc. Now you want to unlock.
Still on Emergency Controls
Click "🔓 UNLOCK VAULT"
This creates an UNLOCK REQUEST
This needs guardian approval! (prevents hacker from unlocking)
Get Guardian Approvals:
Switch to Guardian 1
Approve the unlock request
Switch to Guardian 2
Approve the unlock request
Execute the unlock
Your vault is now UNLOCKED ✅
Try depositing - ✅ Works again!
Try withdrawing - ✅ Works again!
What you learned:
Lock can be instant (by owner or guardian)
Unlock requires guardian approval (security layer)
Pending requests are cleared when you lock
✅ Quest Complete! You've unlocked your vault.
Quest 3: Vault Recovery (Guardian Override) (20 minutes)
What you're doing: Testing what happens if a vault owner loses access and guardians need to transfer the vault to a new owner.
The Scenario: Your wallet is permanently compromised or lost. Guardians need to move your vault to your new wallet address.
Important: This is different from "Transfer":
Transfer = Owner wants to move vault (owner initiates)
Recovery = Owner is locked out (guardians initiate)
Initiate Recovery (As a Guardian):
Switch to Guardian 1 wallet
Go to the vault (you can access as guardian)
Click "Emergency Recovery" (might be under Emergency Controls)
Enter the NEW OWNER ADDRESS (your recovery wallet or another address you control)
Click "Request Recovery"
Approve the transaction
This creates a RECOVERY REQUEST
Other Guardians Approve:
Switch to Guardian 2
Go to "Pending Recovery Requests"
Review the recovery (shows new owner address)
Click "Approve Recovery"
Confirm
Wait for enough approvals (depends on your security threshold)
Execute Recovery:
Once enough guardians approve
Any guardian can click "Execute Recovery"
The vault NFT transfers to the new owner
The old owner can no longer access the vault
The new owner has full control
Verify:
Switch to the NEW owner wallet
Check your assets - you should see the vault NFT
You can now control the vault
All assets are safe inside
✅ Quest Complete! You've recovered a vault.
Quest 4: Lock Cancels Recovery (Security Test) (15 minutes)
What you're doing: Testing a security feature where locking a vault automatically cancels any pending recovery requests.
The Scenario: Guardians mistakenly started a recovery, but you still have access. You want to stop it!
Setup:
Have guardians start a recovery (like in Quest 3)
DON'T execute it yet - leave it pending
You (vault owner) notice this!
Stop the Recovery:
Quickly LOCK the vault (as vault owner)
The recovery request is AUTOMATICALLY CANCELLED ❌
Now unlock the vault (with guardian approval)
The recovery is gone - vault is safe
What you learned:
Lock is a powerful emergency tool
It cancels dangerous pending actions
Owner can defend against unauthorized recovery
But unlock still needs guardians (balanced security)
✅ Quest Complete! You understand the security interplay.
Quest 5: Transfer vs Recovery Comparison (15 minutes)
What you're doing: Understanding the difference between normal vault transfer and emergency recovery.
Scenario A: Normal Transfer (Owner Initiated)
You want to move your vault to a new wallet safely:
Request a vault transfer (as owner)
Enter new owner address
This requires GUARDIAN APPROVAL
Guardians review and approve
Execute transfer
Vault moves to new owner
Scenario B: Emergency Recovery (Guardian Initiated)
Owner lost access, guardians must take over:
Guardian initiates recovery
Other guardians must approve
No owner approval needed (they're locked out!)
Execute recovery
Vault moves to recovered owner
Key Differences:
Feature
Transfer
Recovery
Who initiates
Owner
Guardian
Owner approval needed
Yes (they request it)
No (they're locked out)
Guardian approval needed
Yes
Yes
Use case
Planned move
Emergency access lost
✅ Quest Complete! You understand both transfer methods.
Last updated
