- Home
- Skills
- Web3 & Crypto
- Aave wstETH/WETH Loop Risk Analyzer
Aave wstETH/WETH Loop Risk Analyzer
Tested on 12 real positions at 4 mainnet blocks; the largest relative difference was 2.5e-10.
$19
What it does
- Check a live or hypothetical Aave wstETH/WETH loop and verify its health factor against onchain data
- Measure how exchange-rate changes, liquidation-threshold cuts and interest accrual affect liquidation risk
- Calculate net yield on equity, the break-even borrow rate and utilization headroom
- Estimate the cost of unwinding 10%, 25%, 50% or 100% of debt with live Curve quotes
- Run deterministic stress scenarios and label the block, data sources and assumptions behind the results
Who it's for
Aave wstETH/WETH loop users
Understand liquidation headroom, net carry and exit costs for a supported position.
Try asking: “Check my Aave wstETH/WETH loop at [address]: health factor, liquidation headroom, net yield and unwind costs.”
DeFi risk researchers
Inspect deterministic scenarios with explicit onchain inputs and assumptions.
Try asking: “Stress-test a hypothetical Aave wstETH/WETH loop under borrow-rate, exchange-rate and liquidation-threshold shocks.”
Developers building DeFi analysis workflows
Use a read-only Python analyzer that produces structured JSON for a compatible agent.
Try asking: “Analyze a supported position and explain the source blocks, calculations and assumptions in the JSON output.”
About this skill
What it answers
"How risky is this Aave wstETH/WETH loop, and what would push it toward liquidation or negative carry?"
Leveraged wstETH/WETH loops on Aave are not liquidated by a stETH depeg: Aave values wstETH at Lido's exchange rate, and the same ETH/USD feed prices both collateral and debt. They can still fail three ways: a fall in the Lido exchange rate, a governance cut to the eMode liquidation threshold, or debt outgrowing the collateral while the WETH borrow rate is above the staking yield. This skill measures the distance to each.
What you get
- Health factor, recomputed from on-chain balances and parameters and, for a live address, checked against Aave's own
getUserAccountData. Tested on 12 real positions at 4 mainnet blocks; the largest relative difference was 2.5e-10. - Distance to each liquidation path: the exchange-rate drop and the liquidation-threshold cut that bring HF to 1, and the days until HF reaches 1 from interest accrual at the current rate, at the rate-curve kink and at 100 % utilization.
- Carry: net APY on equity, break-even borrow rate and utilization, headroom to the kink.
- Unwind cost at 10/25/50/100 % of debt, from a StableSwap model and from live Curve quotes, reported separately from liquidation risk.
- Stress scenarios: historical events with inputs read on-chain (Terra, 3AC and FTX in 2022, the August 2024 crash, the July 2025 WETH rate spike, the October 2025 crash), ETH-drop cascades, a rate superspike, a governance shock and a slashing tail.
How it works
Your agent runs scripts/analyze.py with a position address or hypothetical amounts. The script reads Aave, Lido and Curve contracts with eth_call at one pinned block through your own RPC endpoint and prints JSON in which every number is tagged onchain@<block>, computed, user_input or assumption. The agent then answers in a fixed format: position, health factor and distance to each path, carry, unwind cost, stress scenarios, assumptions.
Requirements
- Python 3.10+ and numpy (
requirements.txt) AAVE_LOOP_RPC_URL: an Ethereum mainnet RPC URL that serves archive state. A free-tier hosted RPC plan worked in testing.
Safety
Read-only. No signing, no transactions, never asks for a private key or seed phrase. The only network destination is the RPC URL you set, and the script never prints it.
Limits
- Aave V3 Ethereum core market, pure wstETH/WETH eMode loops only.
- No Monte Carlo VaR; stress scenarios are 30-day deterministic paths, and some stress inputs are documented assumptions.
- Analysis only, not financial advice. It never recommends opening, closing or resizing a position.
Requires a Python 3.10 environment and an Ethereum archive RPC URL. Limited to wstETH/WETH eMode positions on Aave V3 Ethereum Mainnet core market only.
Requires Python 3.10+, numpy and an Ethereum mainnet archive RPC endpoint configured as AAVE_LOOP_RPC_URL. A compatible SKILL.md agent must be able to run Python and reach that RPC host. scripts/analyze.py reads Aave, Lido and Curve contracts with eth_call at a pinned block and returns JSON. Scope: Aave V3 Ethereum core market, pure wstETH/WETH eMode loops. Stress paths are deterministic, not Monte Carlo VaR. Read-only: no wallet signing or transactions.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
- Python 3.10+ with numpyEthereum mainnet archive RPC URL
Python
Set AAVE_LOOP_RPC_URL to your RPC URL before use. If your agent runs commands in a network sandbox, allow that host.
Permissions
What's inside
Frequently Asked Questions
New in Web3 & Crypto
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Web3 & Crypto.