Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for blockchain developers

Oracle Dependency Risk Agent

Know what each external dependency can do to the contract and add safeguards that are tested

Oracle Dependency Risk Agent: what goes in, what the agent does and what you get

What it does

A lending contract trusts a price feed. If the feed goes stale or a thin pool is manipulated, the contract can lose funds. This agent lists every external dependency in the contract: price oracles, other contracts, bridges and admin keys. For each it checks how often it updates, how far it can deviate, how much liquidity stands behind it and who can change it. It then simulates failures on a fork: a stale price, a price jump of 30%, a manipulated pool, and a paused dependency. It measures the effect on the contract, such as bad debt or locked funds, and proposes safeguards: staleness checks, bounds, a second source or a pause. It retests each safeguard. The developer approves changes. Edge case: a safeguard blocks normal use during a volatile day, so the agent tunes the bound.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
ApprovedYes, continueYes, continueNoNo 1 STARTS WHEN Release planned or dependency change 2 USES A TOOL List external calls, oracles, bridges and admincontrols 3 USES A TOOL Check update rate, deviation limits, liquidity andcontrol of each 4 USES A TOOL Simulate stale, jumped, manipulated and paused caseson a fork 5 DOES Measure the loss or lockup in each case 6 DOES Propose safeguards for the worst cases 7 YOU APPROVE Developer approves which safeguards to build 8 USES A TOOL Add the safeguards in a branch and rerun thesimulations 9 CHECKS THE RESULT Do the safeguards stop the losses in all cases? If not: strengthen or combine safeguards and test again.Back to step 5. 10 CHECKS THE RESULT Does normal use still work on a volatile-day replay? If not: loosen the bound or add a grace period andretest. Back to step 5. 11 RESULT Dependency risk report and tested safeguards
Read the steps as a list
  1. Release planned or dependency change
  2. List external calls, oracles, bridges and admin controls
  3. Check update rate, deviation limits, liquidity and control of each
  4. Simulate stale, jumped, manipulated and paused cases on a fork
  5. Measure the loss or lockup in each case
  6. Propose safeguards for the worst cases
  7. Developer approves which safeguards to buildThe agent waits here for your OK.
  8. Add the safeguards in a branch and rerun the simulations
  9. Do the safeguards stop the losses in all cases?If not: strengthen or combine safeguards and test again. Back to step 5.
  10. Does normal use still work on a volatile-day replay?If not: loosen the bound or add a grace period and retest. Back to step 5.
  11. Dependency risk report and tested safeguards

How it decides

It ranks dependencies by the loss they could cause and proposes the lightest safeguard that holds in the simulations without blocking normal use.

  • Require a staleness check for any price older than the feed's stated heartbeat
  • Test a 30% price jump and a 1-hour stale price on every oracle
  • Treat a dependency with admin control by one key as high risk
  • Prefer a second price source over wider bounds

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Failure cases to simulate
  • Staleness limits per feed
  • Price jump size (default 30%)
  • Network and fork block
  • Risk ranking rules

What keeps you in control

It always asks you first

  • Developer approves safeguards
  • Security lead approves changes to admin controls

Hard limits

  • Simulate only on forks, never on live networks
  • Never send transactions with real funds

It stops when

  • Done: all high-risk dependencies have tested safeguards
  • Stop: a dependency cannot be made safe and should be replaced

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensA lending contract used one price feed with a 24-hour heartbeat. The stale-price test led to 120,000 dollars of bad debt. A 30% manipulated-pool price test passed the 5% bound but the agent's safeguard, a 1-hour staleness limit, blocked deposits on a normal volatile day, so the second check failed. The agent changed the limit to 3 hours plus a second source, and the developer approved.

More agents for blockchain developers