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: Add min_lp_to_receive in join_pool #63

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

abhimanyusinghgaur
Copy link
Contributor

@abhimanyusinghgaur abhimanyusinghgaur commented Feb 24, 2023

This PR adds a min_lp_to_receive parameter during JoinPool execution. If the user is getting back less than the specified amount of LP tokens back, the transaction will fail. This is useful to handle front-running scenarios during liquidity provisions.

This PR adds a `min_lp_to_receive` parameter during `JoinPool` execution. Ih the user is getting back less than the specified amount of LP tokens back, the transaction will fail. This is useful to handle front-running scenarios during liquidity provisions.
Copy link
Member

@betterclever betterclever left a comment

Choose a reason for hiding this comment

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

Looks good overall. I think we can add this check in inbalanced withdraw as well so that burn shares slippage can be controlled.

@abhimanyusinghgaur abhimanyusinghgaur merged commit b6a0beb into main Feb 24, 2023
@abhimanyusinghgaur abhimanyusinghgaur deleted the abhimanyu/min_receive branch February 24, 2023 11:47
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.

None yet

2 participants