risk-assessment
Protocol and DeFi risk evaluation covering hack history, oracle dependencies, treasury health, TVL concentration, and yield sustainability. Use when the user asks "is X safe", "how risky is", protocol security, risk analysis, or wants to evaluate risk before investing or depositing funds.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- risk-assessment
- description
- Protocol and DeFi risk evaluation covering hack history, oracle dependencies, treasury health, TVL concentration, and yield sustainability. Use when the user asks "is X safe", "how risky is", protocol security, risk analysis, or wants to evaluate risk before investing or depositing funds.
02 资源文件 2
- 参考文档SOURCE.md165 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Risk Assessment
Evaluate the risk profile of a DeFi protocol by examining its security history, oracle dependencies, treasury, fundamentals, and yield levels.
Workflow
Step 1 - Resolve the protocol entity
defillama:resolve_entity
entity_type: "protocol"
name: "<user-provided name>"
Step 2 - Hack history
Check whether the protocol has been exploited before.
defillama:get_events
protocol: "<slug>"
event_type: "hacks"
Any past hacks are a significant risk signal. Note the date, amount lost, and whether funds were recovered.
Step 3 - Oracle dependencies
Identify which oracle the protocol relies on and how much value it secures.
defillama:get_oracle_metrics
Filter results for the protocol's oracle. Oracle metrics automatically
filter to tvl_component = 'base' and aggregate with SUM/GROUP BY to
exclude double-counted TVL. A protocol using a small or unproven oracle
has higher risk than one using Chainlink or Pyth.
Step 4 - Treasury health
Assess the protocol's financial reserves.
defillama:get_treasury
treasury: "<slug>"
A healthy treasury provides a safety net for bug bounties, insurance, and continued development.
Step 5 - Protocol fundamentals
Check TVL, revenue, and trends to evaluate sustainability.
defillama:get_protocol_metrics
protocol: "<slug>"
Key signals: Is TVL growing or declining? Is the protocol generating real revenue?
Step 6 - Yield analysis
Examine pool APYs for sustainability red flags.
defillama:get_yield_pools
protocol: "<slug>"
Risk Signals
Evaluate each factor and assign a risk level:
| Signal | Risk Level | Explanation |
|---|---|---|
| Recent hack (< 1 year) | HIGH | Protocol was recently exploited |
| Past hack (> 1 year), no recurrence | MODERATE | Was exploited but has since hardened |
| No hack history | LOW | No known exploits |
| No oracle or small oracle TVS | MODERATE | Oracle risk, potential manipulation |
| Uses Chainlink/Pyth with high TVS | LOW | Battle-tested oracle infrastructure |
| Treasury < $1M | HIGH | No meaningful safety net |
| Treasury > $10M | LOW | Strong financial reserves |
| APY > 100% from rewards only | HIGH | Likely unsustainable, token emissions |
| APY from real yield (fees) | LOW | Sustainable yield source |
| TVL declining > 20% in 30d | MODERATE | Users are leaving |
| Revenue declining with TVL | HIGH | Fundamentals deteriorating |
Output Format
Present the report with these sections:
- Risk Summary - Overall risk rating (LOW / MODERATE / HIGH) with a one-sentence justification.
- Security History - Hack incidents, amounts, and outcomes.
- Oracle Risk - Which oracle is used, TVS secured, reliability.
- Treasury Health - Total treasury value, composition, runway.
- Fundamental Health - TVL trend, revenue, user activity direction.
- Yield Sustainability - Are yields from real fees or emissions?
- Risk Factors - Bullet list of all identified risk signals with their severity level.
Tips
- No data from
get_eventsfor hacks is a positive signal, not missing data. - A protocol with high TVL but zero revenue may be subsidizing usage with token emissions - flag this.
- Compare treasury value to TVL: treasury < 1% of TVL means limited ability to cover losses.
- Multiple past hacks on the same protocol is a stronger negative signal than a single incident.
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.