- Added comprehensive bounds checking to prevent buffer overruns in multicall parsing - Implemented graduated validation system (Strict/Moderate/Permissive) to reduce false positives - Added LRU caching system for address validation with 10-minute TTL - Enhanced ABI decoder with missing Universal Router and Arbitrum-specific DEX signatures - Fixed duplicate function declarations and import conflicts across multiple files - Added error recovery mechanisms with multiple fallback strategies - Updated tests to handle new validation behavior for suspicious addresses - Fixed parser test expectations for improved validation system - Applied gofmt formatting fixes to ensure code style compliance - Fixed mutex copying issues in monitoring package by introducing MetricsSnapshot - Resolved critical security vulnerabilities in heuristic address extraction - Progress: Updated TODO audit from 10% to 35% complete 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
812 B
JSON
24 lines
812 B
JSON
{
|
|
"name": "curve_usdc_usdt",
|
|
"description": "Curve stable swap example with 0.04% fee",
|
|
"pool": {
|
|
"address": "0x0000000000000000000000000000000000000006",
|
|
"exchange": "curve",
|
|
"token0": { "symbol": "USDC", "decimals": 6 },
|
|
"token1": { "symbol": "USDT", "decimals": 6 },
|
|
"reserve0": { "value": "1000000000000", "decimals": 6, "symbol": "USDC" },
|
|
"reserve1": { "value": "1000000000000", "decimals": 6, "symbol": "USDT" },
|
|
"fee": { "value": "4", "decimals": 4, "symbol": "FEE" },
|
|
"amplification": "100"
|
|
},
|
|
"tests": [
|
|
{
|
|
"name": "amount_out_1_usdc",
|
|
"type": "amount_out",
|
|
"amount_in": { "value": "1000000", "decimals": 6, "symbol": "USDC" },
|
|
"expected": { "value": "999600", "decimals": 6, "symbol": "USDT" },
|
|
"tolerance_bps": 1
|
|
}
|
|
]
|
|
}
|