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
- Install Python 3.9+ with
web3,httpx, andrichpackages - Configure RPC endpoint access (free public RPCs via https://chainlist.org work fine)
- Optionally add Etherscan API key for better gas estimates
- Set RPC in
${CLAUDE_SKILL_DIR}/config/settings.yamlor useETH_RPC_URLenv var
Instructions
- Simulate a two-DEX arbitrage with automatic fee and gas calculation:
Related skills