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

[feat] Implement Impermanent Loss Calculator #41

Open
adrianvrj opened this issue Jan 17, 2025 · 0 comments
Open

[feat] Implement Impermanent Loss Calculator #41

adrianvrj opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request hard

Comments

@adrianvrj
Copy link
Member

Description:

Develop and integrate an Impermanent Loss (IL) Calculator into Lumos to allow users to estimate the potential IL when providing liquidity in Ekubo CLMM pools. The calculator should support any two tokens, specific fee tiers, and precision settings.

Tasks:

UI/UX Implementation

Design and create the Impermanent Loss Calculator page following the Figma design.
Ensure a clean, intuitive, and responsive layout.
Allow users to input token pairs, initial and final prices, and liquidity position details.

IL Calculation Logic

Implement the mathematical formula for impermanent loss.
Ensure the formula considers variable price ranges and CLMM dynamics from Ekubo.
Fetch real-time token prices and pool data via Ekubo API.

Backend & Data Retrieval

Integrate with the Ekubo protocol to retrieve pool fees, user positions, and price movements.
Store historical price data for more accurate loss projections.

Performance & Optimization

Ensure calculations are fast and efficient.
Implement error handling for invalid inputs or API failures.
Allow users to compare multiple scenarios in a side-by-side view.

Expected Outcome:

A fully functional Impermanent Loss Calculator that provides accurate estimations for liquidity providers.
Seamless integration with Ekubo data for real-time price calculations.
Users can make informed decisions about their liquidity positions in CLMM pools.

@adrianvrj adrianvrj added enhancement New feature or request hard labels Jan 17, 2025
@adrianvrj adrianvrj self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hard
Projects
None yet
Development

No branches or pull requests

1 participant