Security baseline for AAVE integration and execution scripts. Use when user asks for AAVE security review, pre-trade checks, liquidation safety, allowance minimization, or execution hardening.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Security baseline for AAVE integration and execution scripts. Use when user asks for AAVE security review, pre-trade checks, liquidation safety, allowance minimization, or execution hardening.
license
MIT
metadata
{"author":"AAVE AI Contributors","version":"1.0.0"}
AAVE Security Foundations
Security-first checklist for AAVE script development and operations.
Threat Areas
Over-approval risk: unlimited ERC20 approvals can expose wallet funds.
Health factor drift: market volatility can liquidate leveraged positions quickly.
Interest rate mode mismatch: stable mode assumptions can fail per asset.
RPC/data inconsistency: stale or failing RPC can produce bad decisions.
Execution race conditions: quote-time assumptions may be invalid at execution.
Required Pre-Execution Checks
Validate chain/token/account/amount format.
Read reserve status (isActive, isFrozen, borrowingEnabled).
Read account health (healthFactor, availableBorrowsBase).
Enforce HF safety threshold before withdraw and aggressive borrow.
Reject execution if allowance/balance preconditions fail.