{"uid":"cap_qcELefjQSkR6HRUssQ2QJ","slug":"lone-star-oracle-defi-risk-scorer-e89ac7b8","name":"Lone Star Oracle DeFi Risk Scorer","description":"DeFi protocol risk score: TVL, hack history, audit status, contract safety, AI verdict, plus current supply/lending yields (APY)","url":"https://defi.lonestaroracle.xyz/risk","method":"GET","headers":{},"bodySchema":{"name":"DeFiRisk — DeFi Protocol Risk Scoring","tags":["defi","risk","protocol","tvl","audit","security","defillama"],"type":"object","version":"1.0.0","category":"blockchain","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"q":{"type":"string","title":"Q","description":"Alias for protocol"},"slug":{"type":"string","title":"Slug","description":"Alias for protocol"},"address":{"type":"string","title":"Address","default":"","description":"Optional contract address for GoPlus check"},"chain_id":{"type":"string","title":"Chain Id","default":"1","description":"Chain ID for GoPlus (default: 1 = Ethereum)"},"protocol":{"type":"string","title":"Protocol","description":"Protocol name or slug"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}},"description":"Protocol-level DeFi risk scoring: TVL, hack history from DeFiLlama, audit status, GoPlus contract safety, risk score 0-10 with AI assessment, plus current supply/lending APY (DeFiLlama yields) for lending/yield protocols. For agents and developers evaluating DeFi protocols before capital allocation."},"responseSchema":null,"example":{"request":{"address":"0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9","chain_id":"1","protocol":"aave"},"response":{"tvl":"$12.85B","flags":["Hacked 1 time(s) — $0.9M total lost","No audit links found — verify independently"],"hacks":[{"date":"2026-03-12","amount":"$862.0K","technique":"CAPO Oracle Misconfiguration","classification":"Ecosystem"}],"chains":[],"github":["aave","aave-dao"],"symbol":"AAVE","service":"DeFiRisk","tvl_raw":12853973246,"twitter":"@aave","verdict":"MODERATE RISK","website":"https://aave.com","category":"","protocol":"Aave","provider":"DeFiRisk — LoneStarOracle","positives":["High TVL ($12.85B) — strong liquidity signal","Open source — GitHub: aave, aave-dao","Contract source verified on-chain","Protocol age > 1 year — battle-tested"],"fetched_at":"2026-06-18T05:31:44.202878+00:00","risk_score":7.5,"description":"Aave is an Open Source and Non-Custodial protocol to earn interest on deposits and borrow assets","ai_assessment":"# Aave Risk Assessment\n\nAave presents **moderate risk** (7.5/10) suitable for significant but not concentrated exposure. The $12.85B TVL and open-source codebase provide structural confidence, though the historical $0.9M breach and missing visible audit documentation warrant independent security verification before deploying capital. The non-custodial model mitigates counterparty risk, making it viable for core DeFi positions provided you conduct due diligence on current audits and governance changes.","contract_check":{"buy_tax":0,"is_proxy":true,"sell_tax":0,"is_honeypot":false,"holder_count":0,"owner_address":"","is_open_source":true,"can_take_back_ownership":false}}},"exampleRequest":{"address":"0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9","chain_id":"1","protocol":"aave"},"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j5yencuqKCvs9sWM-_h7O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a composite risk score for a DeFi protocol, including TVL, hack history, audit status, contract safety analysis, and an AI-generated risk verdict","exampleAgentPrompt":"Before I deposit funds, can you pull the Lone Star Oracle risk score for Aave on Ethereum — I want to see the TVL, whether it's been hacked, audit status, contract safety, and the AI verdict on overall risk?","exampleUseCases":[{"title":"Evaluate protocol safety before yield farming","prompt":"I'm thinking about depositing into a new yield farm I found. Can you check the Lone Star Oracle risk score for it? I need to know the TVL, any past hacks, whether it's been audited, and what the AI thinks about the contract safety overall."},{"title":"Compare risk profiles across DeFi platforms","prompt":"Help me compare the risk scores for Curve and Balancer using Lone Star Oracle. I want to see their TVLs, hack histories, audit statuses, and contract safety analyses so I can figure out which one to trust with my liquidity."},{"title":"Assess emerging protocol before investing","prompt":"There's this new DeFi protocol I'm interested in, but I want to be careful. Can you pull up the Lone Star Oracle risk assessment? I need the full picture — TVL, security incidents, audit status, contract safety indicators, and the AI's verdict on whether it's actually safe."}],"resultDescription":"Returns a structured risk profile for the queried DeFi protocol, including its current TVL, history of security incidents or hacks, audit status (audited/unaudited/partial), contract safety indicators, and an AI-generated overall risk verdict summarizing the protocol's safety level.","failureModes":["Unknown or unsupported protocol returns 404 or empty result","Protocol address not recognized on the specified chain","Missing required query parameters returns 400 bad request","Payment not processed results in 402 Payment Required","Rate limiting or quota exceeded returns 429","Stale data if protocol metadata has not been recently updated"],"whenToPreferThis":"Use this endpoint when an agent needs a quick, multi-dimensional DeFi protocol risk assessment before executing a transaction, recommending a yield strategy, or advising a user on protocol safety. Preferred over generic blockchain explorers because it aggregates hack history, audit status, TVL, contract safety, and an AI verdict into a single scored response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:48.290Z","isFirstParty":false}