This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Stablecoin Emergency Shutdown Trigger

Security · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — nothing to install.
CategorySecurity
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Stablecoin Emergency Shutdown Trigger enables authorized roles (Guardian, Admin, or Owner) to trigger an emergency shutdown on stablecoin contracts in response to critical events such as price peg deviations, oracle failures, or detected vulnerabilities. The tool reads your connected wallet address, stablecoin contract address, emergency shutdown status, shutdown trigger conditions, total supply, collateral ratio, price feed data, current block timestamp, and your user role (guardian/admin/owner). It displays the current stablecoin status including total supply, collateral ratio, price, your role, and shutdown status before allowing execution. Once triggered, the stablecoin contract immediately freezes all transfers, minting, and burning, protecting holders from ongoing threats.

HOW TO USE

Connect your wallet and select your network. Enter the stablecoin contract address and optionally provide a reason for the shutdown (for audit trail purposes). Click "Fetch stablecoin status" to load the current stablecoin details including total supply, collateral ratio, price, your role, and whether the stablecoin is already shut down. If you are authorized (Guardian, Admin, or Owner) and the stablecoin is not already shut down, the tool will display a warning box and enable the shutdown button. Review the details carefully, then click "Trigger emergency shutdown" to execute the shutdown. You will be prompted for a final confirmation before the transaction is signed and sent.

THE REAL MECHANISM — ROLE-BASED SHUTDOWN WITH STATE VERIFICATION

Unlike standard pause functions that only check a boolean flag, this tool implements a role-based emergency shutdown system with comprehensive state verification. The stablecoin contract stores user roles (0=None, 1=Guardian, 2=Admin, 3=Owner) and enforces that only authorized addresses can call emergencyShutdown. The getStablecoinInfo function returns the total supply, collateral ratio, and price in a struct. The emergencyShutdown function takes a reason string parameter, which is emitted in a Shutdown event for audit tracking. When triggered, the stablecoin performs several actions: (1) sets the shutdown flag to true, (2) freezes all transfers, minting, and burning functions, (3) emits a Shutdown event with the reason and caller address. The tool reads the user's role via getUserRole and validates that the caller is authorized before enabling the shutdown button. The isShutdown function allows quick status checking. All arithmetic uses ethers.js BigNumber with the token's decimal precision, and gas costs are reported using receipt.effectiveGasPrice. The tool includes a double-confirmation flow to prevent accidental triggers.

WHAT IT CANNOT SEE

Cannot verify off-chain market conditions—the tool has no visibility into market events, oracle failures, or external threats. It cannot ensure shutdown execution correctness—the tool cannot guarantee that the stablecoin's shutdown function will execute correctly or that funds will be safe. It cannot predict future protocol risk—the tool cannot forecast whether the stablecoin will face future threats. It cannot detect if the stablecoin contract contains vulnerabilities—the tool does not audit the contract logic. It cannot recover operations after a shutdown—unshutting requires separate governance action.

PLEASE NOTE — EVM CHAINS ONLY

This tool exclusively supports EVM-compatible chains where ethers.js can connect via standard JSON-RPC. It does not support non-EVM chains such as Solana, Tron, Starknet, SUI, TON, Aptos, Bitcoin, Cosmos, or XRP. The stablecoin contract must implement the specific interface expected by this tool (emergencyShutdown, getStablecoinInfo, getUserRole, isShutdown). Only trigger shutdown in genuine emergencies—this action will freeze all stablecoin operations. This tool is an emergency response interface, not a financial advisor or security auditor.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.