simulating-flash-loans

Featured

Simulate flash loan strategies with profitability calculations and risk assessment across Aave, dYdX, and Balancer. Use when simulating flash loans, analyzing arbitrage profitability, evaluating liquidation opportunities, or comparing flash loan providers. Trigger with phrases like "simulate flash loan", "flash loan arbitrage", "liquidation profit", "compare Aave dYdX", "flash loan strategy", or "DeFi arbitrage simulation".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Simulating Flash Loans ## Contents [Overview](#overview) | [Prerequisites](#prerequisites) | [Instructions](#instructions) | [Output](#output) | [Error Handling](#error-handling) | [Examples](#examples) | [Resources](#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: ```bash python ${CLAUDE_SKILL_DIR}/scripts/flash_simulator.py arbitrage ETH USDC 100 \ --dex-buy uniswap --dex-sell sushiswap ``` 2. Compare flash loan providers to find the cheapest for your strategy: ```bash python ${CLAUDE_SKILL_DIR}/scripts/flash_simulator.py arbitrage ETH USDC 100 --compare-providers ``` 3. Analyze liquidation profitability on lending protocols: ```bash python ${CLAUDE_SKILL_DIR}/scripts/flash_simulator.py liquidation \ --protocol aave --health-factor 0.95 ``` 4. Simulate triangular arbitrage with multi-hop circular paths: ```bash python ${CLAUDE_SKILL_DIR}/scr...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category