
Covers Finance Web3 DeFi Risk Assessment
Description
Reduce the risk on an Aave position — "reduce my risk", "unwind", "get my health factor up", "I'm close to liquidation" — by comparing the routes (repay, repay from collateral, add collateral) on the resulting health factor before recommending one.
SKILL.md
Aave deleveraging
There are three ways to lift a health factor, and they cost the user different things. Compare them before recommending one.
Steps
- Inspect —
get_user_summaryfor the health factor, thenget_user_positionsfor the debt and collateral by asset. Identify the largest debt and the collateral with the highest liquidation threshold. - Route A: repay from wallet —
get_marketswithuserfor the debt asset's wallet balance. If the wallet holds it,preview_action(actionrepay) at the amount that reaches the target health factor. - Route B: repay from collateral — on v4,
get_repay_with_supply_quotefor the debt against the collateral; it is atomic and the health factor never passes through a worse state. On v3 there is no atomic route: a withdraw → repay sequence dips the health factor between steps, and that must be said. - Route C: add collateral —
preview_action(actionsupply,enableCollateral: true) for an asset the wallet holds. - Compare — one table: route, what the user gives up, health factor after, and what remains at risk. Recommend the route that reaches the target with the least the user must part with, and say why the others rank lower.
Rules
- Default target health factor is 1.5 unless the user names one. Below 1.1 is urgent: say so first, then compare routes.
- Every simulated route reports its
healthFactorAfter; a route that cannot be simulated is described as unsimulated, not estimated. - Build nothing until the user picks a route; then hand over to the
safe-transactionsskill for the build.
Done when
- Every route the position allows was simulated or quoted, with the health factor after.
- The answer says which route reaches the target with the least given up, and why.
- If the position is on v3, the answer says there is no atomic repay-from-collateral and names the health-factor dip.
More skills from the skills repository
View all 5 skillsSkillTagsUpdated
account-activity
review Aave account activity history
Aug 30AnalyticsDeFiFinanceWeb3safe-transactions
prepare Aave protocol transactions
Aug 30DeFiEthereumFinanceWeb3tx-confirmation
confirm Aave transaction status
Aug 30DeFiFinanceMonitoringWeb3yield-analysis
analyze Aave yield and interest rates
Aug 30AnalysisDeFiFinanceWeb3