Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    defi flash loan arbitrage engine

    1

    Deterministic DeFi flash loan arbitrage engine for calculating net profit and execution viability.

    $14.99

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned
    defi flash loan arbitrage engine

    defi flash loan arbitrage engine

    Example session with this skill installed

    Calculate net profit for a 1,000,000 USDC flash loan. Buy on UniswapV3 at $1.00, sell on Sushiswap at $1.008. Gas is 35 Gwei and ETH is $3300.

    • Read your context and instructions
    • Compiled the defi flash loan

    I have executed the deterministic profit analysis for the requested flash loan arbitrage. The engine has calculated the gross revenue, protocol fees, and gas costs to determine execution viability.

    Flash Loan Arbitrage Analysis

    MetricValue (USD)
    Borrow AssetUSDC
    Flash Loan Amount1,000,000.00
    Gross Profit$8,000.00
    Flash Loan Fee (9 bps)$900.00
    Estimated Gas Cost$40.43
    Net Arbitrage Profit$7,059.57
    Arbitrage ViableTRUE

    Audit Integrity Seal
    9d326fd548aea7fc52b1a81ea51218e26fe50202a48fb7cd5f5b27581eb8118d

    Next steps

    • Verify the buy_price_usd and sell_price_usd against current order book depth to ensure minimal slippage.
    • Review the gas_cost_usd if network congestion increases beyond 35 Gwei.
    • Execute the transaction via your preferred smart contract runner if the net profit meets your risk threshold.
    $14.99/mo

    Subscription · always the latest version

    • Secure checkout via Stripe
    • Cancel anytime
    • Delivered live via MCP

    About this skill

    Manual arbitrage calculations often miss the hidden overhead that kills margins. This skill provides a deterministic engine to calculate the net profitability of DeFi flash loan opportunities, accounting for slippage, protocol fees, and gas costs.

    What it does

    • Deterministic Modeling calculates gross revenue and net profit using verified math formulas.
    • Protocol Fee Accounting applies standard 9 bps flash loan fees for accurate margin analysis.
    • Gas Cost Conversion translates network Gwei and ETH prices into flat USD costs for execution.
    • Integrity Verification generates a SHA-256 audit hash for every calculation trace.
    • Viability Gating returns a boolean flag to instantly identify profitable versus loss-making trades.

    How it works

    1. Input validation checks assets, amounts, venues, and prices against schema constraints.
    2. Formula execution runs deterministic calculations for gross profit, fees, and gas.
    3. Integrity sealing generates a cryptographic hash of the execution trace for auditability.
    4. Data return delivers a structured JSON response with a profit/loss breakdown.

    Frameworks & tools

    This skill uses JSON-RPC for execution and supports standard DeFi assets like USDC, WETH, and WBTC. It is designed for integration with MEV searcher workflows and automated trading systems.

    Why this beats prompting it yourself

    Generic LLMs frequently hallucinate floating-point arithmetic or fail to account for gas conversion logic accurately. This skill uses a hard-coded mathematical engine to ensure every calculation is deterministic and verifiable.

    Use cases

    • Trade Validation to verify the math before committing a transaction to a relayer.
    • Strategy Backtesting by running historical price data through the engine.
    • Real-time Monitoring to filter potential arbitrage opportunities for viability.

    Known limitations

    Does not perform live transactions or external ERP writes. Requires human sign-off for execution and does not provide regulatory legal warranties.

    Requires all schema parameters to be present. Does not execute live trades or provide legal/financial warranties.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    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

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 2 days ago

    Permissions

    Terminal / Shell
    Read Files
    Listed2 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the 'invisible overhead' problem by using a deterministic engine to calculate gas costs, slippage, and protocol fees, ensuring you only execute trades that are net-profitable in USD.

    The skill is designed for any AI agent or platform that supports JSON-RPC execution, making it compatible with MEV searchers, automated trading bots, and LLM-driven strategy assistants.

    You receive the full deterministic calculation engine, schema-validated input handlers, and the SHA-256 integrity verification module for audit logging.

    While it works with any asset pair, it is optimized for high-liquidity DeFi tokens like USDC, WETH, and WBTC where standard 9 bps flash loan fees and slippage models are most applicable.

    The skill generates a SHA-256 audit hash for every calculation, allowing you to prove the mathematical integrity of a trade decision during post-trade analysis or debugging.

    This skill focuses strictly on calculation and viability gating; it does not have the authority to move funds or sign transactions, ensuring you maintain final control over execution.

    New in LLM Ops