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

[Feature]: ELS for spots #8337

Closed
ze97286 opened this issue May 20, 2023 · 0 comments · Fixed by #8338
Closed

[Feature]: ELS for spots #8337

ze97286 opened this issue May 20, 2023 · 0 comments · Fixed by #8338
Assignees
Labels
feature new feature to be developed

Comments

@ze97286
Copy link
Contributor

ze97286 commented May 20, 2023

Feature Overview

As the LP now has a different commitment amount on each side of the book, the following considerations must be made:

  • Physical Stake:
    • An LPs physical_stake should be treated separately for each side of the book - call these the buy_physical_stake and the sell_physical_stake.
    • The current physical_stake for market stake calculations is the smaller of the two values, where the sell_physical_stake is converted into the quote_asset at the current mark_price.
  • Virtual Stake:
    • An LPs virtual_stake should be treated separately for each side of the book - call these the buy_virtual_stake and sell_virtual_stake.
    • The same growth factor - as specified in the LIQF spec - derived from the total value for fee purposes in the quote asset is used to update both buy/sell virtual stakes (still in their respective assets).
    • The current virtual_stake for fee splitting is the smaller of the two values where the sell_virtual_stake is converted to quote_asset at the current mark_price.

From the above conditions, an LP is incentivised to provide a roughly equal value of liquidity on each side of the book at comparable levels of competitiveness in order to maximise their share of the liquidity fees.

Specs

@ze97286 ze97286 added the feature new feature to be developed label May 20, 2023
@ze97286 ze97286 self-assigned this May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature to be developed
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant