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: Allow slippage on forced proportional adds #1133

Merged
merged 8 commits into from
Oct 2, 2024

Conversation

garethfuller
Copy link
Contributor

@garethfuller garethfuller commented Sep 26, 2024

Allow the user to set a custom slippage in forced proportional add liquidity flows. Setting this slippage adjusts the user's balances in TokenBalancesProvider so that they can only input their balance - set slippage.

How to test

  • In a CoW pool add liquidity flow, try changing the slippage setting to something greater than 0%.
    • Notice your balances changing?
    • Try adding liquidity, how much dust are you left with?
  • In a non-forced proportional pool, try adding liquidity to see if anything has been affected.
Screenshot 2024-10-02 at 09 47 36 Screenshot 2024-10-02 at 09 47 43 Screenshot 2024-10-02 at 09 47 49

Copy link

vercel bot commented Sep 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2024 1:22pm
test-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2024 1:22pm

@danielmkm
Copy link
Collaborator

Hey, this is an edge case for users depositing from a multisig, I don't think it needs to start open every time you open the modal. I'd prefer some sort of highlighting on the settings button that you can click. Ideally once clicked it doesn't show again.

The current implementation is making the edge case the base case, which is not correct.

@garethfuller garethfuller deleted the feat/proportional-slippage branch October 2, 2024 13:53
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.

3 participants