Works with the AI Agents you already use
Solana Perps Protocol Review
by BanditXBT
Solvency review of Solana perps/margin protocols incl. contention, compute limits, keepers, MEV, stress tests.
$4.20
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.
- Σ collateral + insurance ≥ Σ liabilities (user equity + pool obligations) at all times.
- Opening then closing at the same price never returns more than deposited minus fees.
- Opening/increasing requires equity ≥ initial margin; liquidatable iff equity < maintenance margin; liquidation never worsens health.
- Per-market OI, per-account size, skew caps enforced on every path (including partial close, withdrawals, keeper-executed orders).
- 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.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 13 days ago
Nothing to install. It runs in your AI agent.
- Optional
Python
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.