A seatbelt for your stablecoins: big pUSDC sends are delayed and cancellable by your backup.
Protected Token (pUSDC) makes large ERC-20 transfers cancellable, so a stolen key or a wrench attack can't drain a wallet in seconds.
Any holder can switch on a public, on-chain "protected" flag. After that, transfers under a daily limit go out instantly. Anything bigger is scheduled: it arrives after a hold window, during which a pre-registered backup wallet can cancel it. An emergency button sweeps the whole balance to the backup and locks it there. Turning protection on is instant. Weakening it (turning it off, changing the backup, raising the limit) takes a delay of at least 7 days in production, so a thief can't just switch it off. Incoming transfers are always instant.
ProtectedWrapper wraps any ERC-20 1:1 (USDC → pUSDC). Big sends from MetaMask are scheduled automatically, and contracts pulling funds over the limit get a clean revert. Unprotected accounts behave like a plain ERC-20 and work with Uniswap as-is. ScheduledSwap lets protected holders make big Uniswap v4 swaps: the swap waits out the hold, and the output always goes to the owner.
The app (live on Base Sepolia) reads the chain through anon-rpc over a mixnet, so an RPC provider can't link a backup wallet to the wallet it watches.
Contracts are Solidity + Foundry on OpenZeppelin's ERC20Permit. All the rules live in one abstract ProtectedERC20 that overrides OZ's _update hook, so the limits apply to every balance change: transfer, transferFrom and permit alike. ProtectedWrapper wraps any ERC-20 1:1 (USDC → pUSDC), with no permission needed from the issuer.
Tricks:
Uniswap v4: ScheduledSwap uses flash accounting (unlock → swap → settle → take), and take() pays the output straight to the owner, so anyone can execute but only the owner gains. Only hookless pools are allowed. The tests run against the real PoolManager on a Base Sepolia fork.
Frontend: React + Vite + wagmi/viem, static, with no backend. anon-rpc plugs in as viem's fetchFn, so app reads go through the Nox mixnet, and the RPC provider can't link a backup wallet to the wallet it watches.

