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

Approval Expiry Auto-Setter

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

The Approval Expiry Auto-Setter monitors any DEX or dApp page where you are about to grant a token approval, and proactively suggests setting a time‑based expiry on that approval. Instead of approving an unlimited or indefinite allowance, it prompts you to choose a finite duration—15 minutes, 1 hour, 24 hours, 7 days, or 30 days—and reminds you when the approval expires. While the tool cannot enforce expiry on all tokens (some do not support permit‑style expiry), it provides a smart safety layer by flagging approval requests, showing the token and spender addresses, and guiding you toward a more secure allowance with a clear reminder to revoke after use. If you approve an unlimited amount despite the warning, the tool stores the expiry and will remind you to revoke it when the time comes.

WHERE IT RUNS

It runs as a draggable overlay panel inside the BotGentz extension on any website where token approvals are requested—Uniswap, SushiSwap, 1inch, OpenSea, Rarible, Aave, Compound, and countless other DeFi and NFT dApps. It works by detecting approval‑related UI elements (buttons labelled "Approve", "Enable", "Unlock", "Allow") and extracting token and spender addresses from the page.

HOW TO USE

1. Install the free BotGentz extension and ensure you have an EVM‑compatible wallet extension installed (e.g., MetaMask, Rabby, Trust Wallet).

2. Navigate to any DEX or dApp where you might grant a token approval.

3. Click the BotGentz icon and select "Approval Expiry Auto-Setter" from the tools menu.

4. Click "Start Watching" to begin monitoring the page for approval requests.

5. When an approval is detected, a suggestion card appears showing the token and spender addresses.

6. Select an expiry duration from the dropdown (e.g., 1 hour, 24 hours) and click "Apply Expiry".

7. The tool stores the expiry and will remind you when the approval is about to expire.

8. You can also check expired approvals manually with the "Check Expired" button.

9. Drag the panel to reposition it, resize it, collapse it, or press Escape to close.

THE ACTUAL MECHANISM — DOM mutation monitoring with approval lifecycle tracking

This tool employs a proactive, non‑invasive detection strategy. First, it uses a MutationObserver to watch the page DOM for changes, scanning for elements that are likely to be approval‑triggering buttons—using a combination of text content matching ("approve", "enable", "unlock", "allow") and attribute/class name pattern detection. Second, when such a button is detected, it extracts nearby addresses by scanning the DOM for standard Ethereum address patterns, prioritizing elements with known class names like "token", "contract", "spender", or "to". Third, it checks the current on‑chain allowance via eth_call using the token contract's `allowance` function—if an allowance already exists, it checks whether it is unlimited ( > 10⁹), and if so, flags it. Fourth, and most importantly, it tracks the approval lifecycle: when a user applies an expiry, the tool stores the expiry timestamp in localStorage (via GM_setValue) and sets a background timer that will flash a reminder when the expiry is approaching or has passed. The tool does not modify on‑chain state; it works purely at the user‑interface layer, providing guidance and reminders that rely on the user to take action.

THE PANEL

The panel is fully draggable by its title bar and snaps to the nearest edge of the viewport when released. You can resize it horizontally by dragging the left or right border; the height expands to fit content up to a maximum, with scrolling inside the suggestions list. A collapse button minimizes the panel to a small floating chip showing "⚙️ Expiry Setter" — click it to expand back. Press Escape at any time to close the panel entirely. The panel remembers its last position, size, and expansion state per domain via localStorage.

PLEASE NOTE

- This tool requires the free BotGentz extension and a real EVM wallet extension (e.g., MetaMask) already installed in your browser. It does not include a wallet—it connects to the one you already have.

- This tool works only on EVM‑compatible chains (Ethereum, BSC, Polygon, Arbitrum, Optimism, and others supported by your wallet).

- The tool does not automatically modify or submit transactions—it only suggests expiry durations and stores reminders. You must manually approve or revoke transactions in your wallet.

- This tool cannot enforce expiry for tokens that do not support permit‑style approvals or custom approval logic. It cannot detect approvals that are initiated via non‑standard interfaces (e.g., custom contract calls not using the standard approve function). It cannot prevent a user from manually approving an unlimited amount outside of the tool's intervention.

- No private keys, seed phrases, or sensitive data are ever read, stored, or transmitted. Approval data is stored locally in your browser's extension storage. Only anonymized usage metrics (panel open/close, approval detections) are collected; you can disable this in the extension settings at any time.

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.