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

Lending Pool Pause Guardian 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

Lending Pool Pause Guardian Trigger enables authorized roles (Guardians, Admins, or Owners) to trigger an emergency pause on lending pools in response to critical events such as oracle manipulation, suspicious activity, or detected vulnerabilities. The tool reads your connected wallet address, lending pool contract address, current pool state (active/paused), pause trigger conditions, total value locked, outstanding loans, current block timestamp, and your user role (guardian/admin/owner). It displays the current pool status, your role, and the pause status before allowing execution. Once triggered, the pool immediately pauses all lending and borrowing operations, protecting user funds from ongoing threats.

HOW TO USE

Connect your wallet and select your network. Enter the lending pool contract address and optionally provide a reason for the pause (for audit trail purposes). Click "Fetch pool status" to load the current pool state, TVL, outstanding loans, your role, and whether the pool is already paused. If you are authorized (Guardian, Admin, or Owner) and the pool is not already paused, the tool will display a warning box and enable the pause button. Review the details carefully, then click "Trigger pool pause" to execute the pause. You will be prompted for a final confirmation before the transaction is signed and sent.

THE REAL MECHANISM — ROLE-BASED PAUSE WITH STATE VERIFICATION

Unlike standard pause functions that only check a boolean flag, this tool implements a role-based pause system with comprehensive state verification. The pool contract stores user roles (0=None, 1=Guardian, 2=Admin, 3=Owner) and enforces that only authorized addresses can call pausePool. The getPoolInfo function returns the TVL, outstanding loans, and paused status in a struct. The pausePool function takes a reason string parameter, which is emitted in a Paused event for audit tracking. When triggered, the pool performs several actions: (1) sets the paused flag to true, (2) pauses all deposit, borrow, and withdrawal functions, (3) emits a Paused 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 pause button. The isPaused 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 pause execution correctness—the tool cannot guarantee that the pool's pause function will execute correctly or that funds will be safe. It cannot predict future protocol risk—the tool cannot forecast whether the pool will face future threats. It cannot detect if the pool contract contains vulnerabilities—the tool does not audit the pool logic. It cannot recover operations after a pause—unpausing 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 pool contract must implement the specific interface expected by this tool (pausePool, unpausePool, getPoolInfo, getUserRole, isPaused). Only trigger pause in genuine emergencies—this action will freeze all pool 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.