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

Borrow Limit Warning Overlay

DeFi · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryDeFi
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

Borrow Limit Warning Overlay watches the current page for your lending position, reads the current borrow amount and maximum borrowable amount directly from the protocol's smart contracts, calculates the borrow utilization percentage in real time, and displays a persistent warning overlay on the page when the borrow limit exceeds a user-defined threshold. This helps you avoid liquidation and maintain healthy borrowing positions.

WHERE IT RUNS

This tool operates as a userscript within the BotGentz extension framework, running directly in your browser on any website. It works on any EVM-compatible blockchain page—Ethereum, Polygon, Arbitrum, Optimism, and more—where lending protocols are deployed. The tool integrates seamlessly into your workflow, appearing as a draggable panel that stays accessible as you manage your DeFi positions.

HOW TO USE

Enter your lending market contract address in the "Market Setup" section. Configure your warning threshold (default 80%) and refresh interval in the "Warning Settings" section. Toggle the persistent overlay warning on or off. Click "Connect & Start Monitoring" to connect your real wallet extension, which will begin monitoring your borrow position and displaying a warning when utilization exceeds the threshold. Use "Refresh Now" for an immediate update, "Dismiss Overlay" to hide the current warning, or "Stop Monitoring" to disconnect. The panel displays your current utilization percentage, borrowed amount, max borrowable amount, and health status.

TECHNICAL OPERATION

Borrow Limit Warning Overlay uses raw JSON-RPC calls via window.ethereum.request() to interact with the blockchain—no external library required for basic operations. It loads ethers at runtime using a simple script tag injection for ABI encoding and contract interactions. The tool attempts multiple common view function names (getUserBorrowAmount, getBorrowBalance, getBorrowed, getMaxBorrowable, getBorrowLimit, getMaxBorrow) to fetch the user's current borrow amount and maximum borrowable amount. It calculates the utilization percentage as (borrowAmount / maxBorrowable) × 100. When the utilization exceeds the user-defined threshold, the tool creates a persistent overlay element on the page with a warning message, showing the current utilization, borrowed amount, max borrowable, and health status. The overlay can be dismissed by clicking it. The tool uses setInterval for automatic refreshes based on the user-defined interval.

THE PANEL

The Borrow Limit Warning Overlay panel is fully draggable and remembers its position between sessions using GM_setValue. It snaps to the edge of the viewport for a clean interface and can be collapsed to a small icon when not in use. The panel is resizable to accommodate longer content. Press Escape to quickly close or collapse the panel. The design is optimized for productivity with a dark theme, clear visual hierarchy, and responsive controls that adapt to your workflow.

PLEASE NOTE

This tool requires the free BotGentz extension installed in your browser and a real EVM wallet extension (MetaMask, Rabby, etc.) already installed. EVM chains only—this does not work on non-EVM blockchains. The tool cannot read borrow data if the contract does not expose the required view functions, cannot detect off-chain position data, and cannot calculate borrow limits if the protocol uses a non-standard interface. No private keys are stored or transmitted—all data is read-only from the blockchain. Always verify the market contract address before starting monitoring.

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.