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: handle thorchain liquidity lockup #7762

Merged
merged 8 commits into from
Sep 19, 2024
Merged

Conversation

kaladinlight
Copy link
Contributor

@kaladinlight kaladinlight commented Sep 17, 2024

Description

Add info acknowledgement for liquidity lockup period on add liquidity and deposit savers as well as a button error state for liquidity locked on remove liquidity and withdraw savers.

Issue (if applicable)

closes #7708

Risk

High Risk PRs Require 2 approvals

Low

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Testing

  • Ensure you are prompted with an info acknowledgment on add liquidity and deposit savers showing the lockup time before proceeding
  • Ensure you see a button error state on remove liquidity and withdraw savers showing the remaining lockup time if locked, or no error state if unlocked

Engineering

☝️

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

☝️

Screenshots (if applicable)

LP:
image
image
image
image

Savers:
image
image

Rune Pool:
image
image

@kaladinlight kaladinlight requested a review from a team as a code owner September 17, 2024 20:12
@kaladinlight kaladinlight marked this pull request as ready for review September 18, 2024 19:04
Copy link
Contributor

@0xApotheosis 0xApotheosis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass code review looking good, onto functional testing.

Copy link
Contributor

@0xApotheosis 0xApotheosis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All working as described!

LP

Screenshot 2024-09-19 at 11 03 28 am Screenshot 2024-09-19 at 11 07 32 am

Non-locked LP still happy:

Screenshot 2024-09-19 at 11 07 49 am

Savers

Screenshot 2024-09-19 at 11 35 00 am

RUNEPool

Screenshot 2024-09-19 at 11 37 09 am Screenshot 2024-09-19 at 11 56 58 am

Copy link
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few smolish comments re: cleanup, but conceptually looks perf 🐐 runtime pass incoming

Copy link
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kaladinlight kaladinlight enabled auto-merge (squash) September 19, 2024 17:53
@kaladinlight kaladinlight merged commit 7f22ed6 into develop Sep 19, 2024
3 checks passed
@kaladinlight kaladinlight deleted the feat-liquidity-lockup branch September 19, 2024 18:00
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.

LP withdraw issues
3 participants