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

Two party POL Holder #85

Closed
bekauz opened this issue Aug 2, 2023 · 0 comments
Closed

Two party POL Holder #85

bekauz opened this issue Aug 2, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@bekauz
Copy link
Collaborator

bekauz commented Aug 2, 2023

Two party POL holder is a new component in the v2 covenant design

Multiple withdrawers

instead of a single withdrawer it should hold a list of whitelisted addresses that may initiate a RageQuit

Lock period

holder should keep track of the Lock period.
after the Lock period expires, holder should withdraw the liquidity and forward the underlying funds to the WithdrawSplitter module that will deal with the distribution.
consider instantiating the splitter on demand, when the lock expires.

RageQuit

should facilitate RageQuit with a predefined fee. Considering two parties, each having an equal share, it may behave like so:

  • party 1 ragequits, accepting a 5% penalty
  • holder decreases party 1 allocation by 5% down to 45%, and increases party 2's allocation to 55%
  • holder then submits a WithdrawLiquidity message for 45% of all lp tokens it holds
  • after receiving the funds, holder forwards the received funds to party 1
  • party 2 may remain in its position for as long as it wants to. it is no longer subject to a ragequit fee and may withdraw its share whenever it wants. if it does not implicitly withdraw, holder withdraws after the lock period and forwards the underlying funds.
@bekauz bekauz added the v2 label Aug 2, 2023
@bekauz bekauz changed the title Holder Two party POL Holder Aug 21, 2023
@bekauz bekauz added this to the v2 milestone Aug 21, 2023
@bekauz bekauz self-assigned this Sep 19, 2023
@bekauz bekauz closed this as completed Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant