Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eth liquidity data to pie chart #7

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

BowTiedSwan
Copy link
Collaborator

@BowTiedSwan BowTiedSwan commented Jan 15, 2025

Add Ethereum Liquidity Data and Enhance Charts

Description

This PR adds support for tracking and displaying Ethereum liquidity data in the Morpheus Metrics Dashboard, along with several enhancements to existing charts and data processing.

Key Changes:

  1. Ethereum Liquidity Integration
  • Added Uniswap ETH configuration to core config
  • Added ETH ABI files for pool, position NFT, and factory contracts
  • Implemented ETH position handling and liquidity calculations
  • Added error handling and logging for combined Uniswap positions
  1. Frontend Chart Enhancements
  • Updated ProtocolLiquidityChart to include Ethereum pool data
  • Added new color scheme to accommodate ETH pool visualization
  • Enhanced chart tooltips and legends
  • Updated chart descriptions to reflect ETH pool inclusion
  1. Data Processing Improvements
  • Enhanced MorRewardsLockedChart with gap detection
  • Improved valid stakes filtering in staking calculations
  • Added robust error handling for position calculations

Technical Details:

  • Added new ETH-specific contract addresses and ABIs
  • Implemented position calculation logic for ETH pools
  • Enhanced data aggregation to include ETH liquidity metrics
  • Added logging for better debugging and monitoring

Testing

  • Verified ETH pool data display in Protocol Liquidity Chart
  • Confirmed accurate calculations for ETH positions
  • Tested error handling for edge cases
  • Validated combined liquidity calculations across all chains

Documentation

  • Updated chart descriptions to include ETH pool information
  • Added inline code comments for complex calculations
  • Updated technical documentation for new ETH integration

Related Issues

  • Resolves #[Issue number] - Add Ethereum liquidity tracking
  • Addresses #[Issue number] - Enhance chart visualizations

Checklist

  • Added ETH contract configurations
  • Implemented ETH position calculations
  • Updated frontend charts
  • Added error handling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant