Expand description
§DeFi Protocol Analysis
Detects DeFi-specific patterns and risks in smart contract source code, including oracle dependencies, flash loan risks, lending protocol patterns, and DEX integration concerns.
§Detected Patterns
- Oracle usage - Chainlink, Uniswap TWAP, Band Protocol
- Flash loan vectors - AAVE, dYdX flash loan callbacks
- Lending patterns - Borrow/lend, collateral, liquidation
- DEX integration - Uniswap, Sushiswap router calls, slippage checks
- Staking/yield - Staking, rewards, vesting patterns
- Token standards - ERC-20, ERC-721, ERC-1155 detection
Structs§
- Defi
Analysis - Complete DeFi analysis result.
- Defi
Risk Factor - A DeFi-specific risk factor.
- DexIntegration
- DEX integration details.
- Oracle
Info - Oracle integration details.
Enums§
- Protocol
Type - Classification of the DeFi protocol type.
- Token
Standard - Token standard detected.
Functions§
- analyze_
defi_ patterns - Analyze DeFi patterns in contract source code.