A project for monitoring and analyzing liquidity positions in Uniswap V3 pools.
- Liquidity position analysis
- Impermanent loss calculation
- APR/APY calculation
- Position efficiency analysis
- Wallet-based grouping
- Statistics export in CSV and JSON formats
-
Impermanent Loss: Loss calculation considering:
- Initial and final prices
- Position price range
- Time interval
- Real prices from swap history
-
APR/APY: Annual yield calculation including:
- Collected fees
- Rewards
- Position duration
-
Position Efficiency:
- Time in range percentage
- Number of swaps in range
- Average deposit amount
- Total profit in USD
- Install dependencies:
npm install
- Run analysis:
npm run start
src/rewards-dist/
- Core code for analysis and statistics generationsrc/loaders/
- Data loaders from various sourcesexport/
- Directory for analysis results export
- Position ID
- Owner
- Price range (tickLower, tickUpper)
- Deposit amounts (token0, token1)
- Collected fees
- Timestamps (open/close)
- Timestamp
- Price
- Token volumes
- Fees
- Position ID
- Reward token
- Reward amount
- Timestamp
Analysis results are exported to:
- CSV files for spreadsheet analysis
- JSON files for further processing
- Node.js
- npm
- Access to RPC node (configured in settings)