simulating-flash-loans

Installation
SKILL.md

Simulating Flash Loans

Contents

Overview | Prerequisites | Instructions | Output | Error Handling | Examples | Resources

Overview

Simulate flash loan strategies across Aave V3, dYdX, and Balancer with profitability calculations, gas cost estimation, and risk assessment. Evaluate flash loan opportunities without executing real transactions.

Prerequisites

  1. Install Python 3.9+ with web3, httpx, and rich packages
  2. Configure RPC endpoint access (free public RPCs via https://chainlist.org work fine)
  3. Optionally add Etherscan API key for better gas estimates
  4. Set RPC in ${CLAUDE_SKILL_DIR}/config/settings.yaml or use ETH_RPC_URL env var

Instructions

  1. Simulate a two-DEX arbitrage with automatic fee and gas calculation:
Related skills
Installs
26
GitHub Stars
2.2K
First Seen
Feb 16, 2026