# solana-oracle-risk-review

> Review Pyth/Switchboard/AMM/LST price reads on Solana for staleness, confidence, manipulation cost.

solana-oracle-risk-review is a paid AI agent skill on Agensi by BanditXBT, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $3.15 (one-time purchase)
- Creator: [BanditXBT](https://www.agensi.io/creators/banditxbt)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/solana-oracle-risk-review
- Tags: web3-crypto, security, trading-investing

## About this skill

Quantify *cost to move the price* vs. *profit from the move*. Validate everything the caller passes; the oracle account is attacker-supplied unless pinned.

- Price updates are posted on-chain by whoever submits them (verified Wormhole-signed data). Read via the receiver SDK's `PriceUpdateV2` account.
- SDK facts to rely on: `Account<PriceUpdateV2>` in Anchor enforces the receiver-program owner (with raw `AccountInfo` you must check it yourself); `get_price_no_older_than(&clock, max_age, &feed_id)` checks feed ID, verification level, and age against `Clock::unix_timestamp` (publish time in **seconds**, not slots); `get_price_unchecked` skips age checks, so never use it without your own staleness logic. Prefer the receiver's ephemeral/atomic post-then-consume pattern within one transaction for execution paths.
- Validate: **account owner** = the Pyth receiver program (Anchor `Account<PriceUpdateV2>` handles this), **feed ID** equals the one stored in your market config (never accept any feed), **verification level** is full, **age** via `get_price_no_older_than(&Clock::get()?, max_age_seconds, &feed_id)`.
- Handle `exponent` (usually negative) explicitly; convert to your fixed-point with checked math. Compare `conf` to `price`: reject or widen margins when `conf/price` exceeds a threshold. Use the lower/upper bound (`price ± k·conf`) conservatively: lower for collateral value, upper for debt value.
- Latency arbitrage: any valid update within the window is acceptable, so a user can pick a favorable one. Mitigate with short windows, publish-time ≥ order-creation time, monotonic publish-time storage, and execution by a keeper with a fresh update.

Check the feed account address/authority matches config, staleness by slot or timestamp as the feed defines, minimum number of oracle responses/samples, and variance/standard-deviation bounds if exposed. Read the on-demand vs. legacy semantic differences before assuming values and units.

- **Never** use pool spot price or reserves for value-bearing decisions. Flash-loan/bundle-financed swaps move it within one transaction at low cost on shallow pools.
- On-chain TWAP is limited or absent in many pools; if you build one, window length must make manipulation unprofitable, accounting for multi-slot control by leaders/bundles.
- LP-token valuation: use fair-value formulas based on external prices for each asset, not pool reserves (inflation attacks).

## Requires

Nothing beyond your AI agent.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the solana-oracle-risk-review skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does solana-oracle-risk-review do?

Review Pyth/Switchboard/AMM/LST price reads on Solana for staleness, confidence, manipulation cost.

### Which AI agents support solana-oracle-risk-review?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use solana-oracle-risk-review?

Connect your AI agent to Agensi through MCP, then ask it to use solana-oracle-risk-review on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
