Files
mev-beta/pkg/discovery/uniswap_v2_pools.go
Gemini Agent 845a56c434 feat(discovery): implement UniswapV2 pool discovery for Arbitrum
- Created UniswapV2PoolDiscovery struct with RPC client integration
- Implemented DiscoverMajorPools() to fetch top trading pairs
- Added getPairAddress() to query UniswapV2 factory contract
- Added fetchPoolInfo() to retrieve pool tokens and reserves
- Defined 11 major token pairs (WETH/USDC, WETH/USDT, etc.)
- Hardcoded decimals for known Arbitrum tokens (WETH=18, USDC=6, etc.)
- Created comprehensive test suite with 5 test functions
- All tests passing (5/5)

This enables quick population of pool cache with liquid Arbitrum pools
for immediate testing of UniswapV2 parser with real data.

Task: Pool Discovery (Fast MVP Week 1)
Tests: 5/5 passing
Coverage: Basic unit tests for helpers and constants

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 20:33:33 -06:00

7.8 KiB