# solana-perps-protocol-review

> Solvency review of Solana perps/margin protocols incl. contention, compute limits, keepers, MEV, stress tests.

solana-perps-protocol-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: $4.2 (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-perps-protocol-review
- Tags: web3-crypto, trading-investing, security

## About this skill

Same solvency logic as any perp venue, different failure surface. Review both.

Identify: **orderbook** (on-chain book or off-chain matching with on-chain settlement), **oracle-priced pool** (LP vault is counterparty to traders), or **hybrid** (AMM + book + just-in-time liquidity). State who bears trader profit, who absorbs bad debt, and the loss waterfall: position equity → liquidation penalty → insurance fund → LP/vault or auto-deleveraging (ADL) → socialization.

1. Σ collateral + insurance ≥ Σ liabilities (user equity + pool obligations) at all times.
2. Opening then closing at the same price never returns more than deposited minus fees.
3. Opening/increasing requires equity ≥ initial margin; liquidatable iff equity < maintenance margin; liquidation never worsens health.
4. Per-market OI, per-account size, skew caps enforced on every path (including partial close, withdrawals, keeper-executed orders).
5. Funding accrual time-weighted, applied before margin checks, no skipped or double-counted intervals; payments net to ~zero (or are pool-accounted).

- **Mark price:** index/TWAP-clamped mark for liquidations, not last-trade. Define source switching and what happens if oracles disagree.
- **Margin & collateral:** isolated vs. cross, per-asset haircuts, wrong-way risk (SOL collateral long SOL), unrealized PnL as collateral, collateral token risk (see `spl-token-2022-security`: freeze authority, transfer hooks).
- **Liquidations:** close factor, penalty split, minimum position size so liquidation is net-positive after fees/priority fees, partial vs. full, who can liquidate (permissionless), liquidation at the same slot as oracle update.
- **Funding rate:** formula, clamp, interval, behavior at extreme skew, precision/rounding, sign conventions.
- **Order lifecycle:** price used at execution vs. request, stale-order replay, cancel griefing, keeper trust (what can a malicious keeper do?).
- **Admin params:** timelock/multisig on leverage, fees, oracle; an update must not make healthy accounts instantly liquidatable.
- **Fees/rebates:** wash-trading and self-referral loops.

## Requires

- Optional: Python

## 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-perps-protocol-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-perps-protocol-review do?

Solvency review of Solana perps/margin protocols incl. contention, compute limits, keepers, MEV, stress tests.

### Which AI agents support solana-perps-protocol-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-perps-protocol-review?

Connect your AI agent to Agensi through MCP, then ask it to use solana-perps-protocol-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.
