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

Concentrated liquidity impermanent loss calculator #3

Open
akiraonstarknet opened this issue Apr 13, 2024 · 5 comments · Fixed by #29 or #36 · May be fixed by #69
Open

Concentrated liquidity impermanent loss calculator #3

akiraonstarknet opened this issue Apr 13, 2024 · 5 comments · Fixed by #29 or #36 · May be fixed by #69
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@akiraonstarknet
Copy link
Contributor

akiraonstarknet commented Apr 13, 2024

Given a user is willing to take position at price P with liquidity added in the range [Pa, Pb], plot how the value of LP position varies in this range. The plot also need to show the hodling value variation. Effectively allowing user to see how LP position is changing compared to Hodl.

The feature will allow users to select tokens to create a pair, we fetch the current prices of the selected tokens, allowing users to simulate using current prices without manually entering them.

In theory, Concentrated LP always returns loss compared to HODL if not for yield from fees and incentives. Allowing user to enter an assumed yield and a period of LPing, show how the return would vary on varying price changes.


The tool could be later extended with the following features:

  1. Allowing user to select tokens for LPing and fetch current yield for the pool from respective protocol. Allowing users to get an idea of returns for current yield.
  2. To show how the returns vary for a custom strategy that involves multiple protocols.
@akiraonstarknet akiraonstarknet added the enhancement New feature or request label Apr 13, 2024
akiraonstarknet added a commit that referenced this issue Apr 13, 2024
@akiraonstarknet akiraonstarknet added the good first issue Good for newcomers label Apr 17, 2024
@Oshioke-Salaki
Copy link

Please I would love to be assigned this

@akiraonstarknet
Copy link
Contributor Author

akiraonstarknet commented Apr 17, 2024 via email

@jedstroke
Copy link

@akiraonstarknet Yo, I am active for this issue.

@Benjtalkshow
Copy link
Contributor

@akiraonstarknet can i take up this issue?

@martinvibes
Copy link
Contributor

please i will like to do this

akiraonstarknet added a commit that referenced this issue Jul 29, 2024
fix auto wallet connect and double your holdings bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment