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

Better error handling when exiting 100% of pool shares #4806

Closed
wants to merge 4 commits into from

Conversation

pysel
Copy link
Member

@pysel pysel commented Mar 31, 2023

Closes: #3427

@github-actions github-actions bot added the C:x/gamm Changes, features and bugs related to the gamm module. label Mar 31, 2023
@pysel pysel added V:state/compatible/backport State machine compatible PR, should be backported A:backport/v15.x backport patches to v15.x branch labels Mar 31, 2023
@@ -19,7 +19,7 @@ import (
const (
nonPostiveSharesAmountErrFormat = "shares amount must be positive, was %s"
nonPostiveTokenAmountErrFormat = "token amount must be positive, was %s"
sharesLargerThanMaxErrFormat = "%s resulted shares is larger than the max amount of %s"
sharesLargerThanMaxErrFormat = "resulted shares %s should be lower than the max amount of %s"
Copy link
Member

@p0mvn p0mvn Mar 31, 2023

Choose a reason for hiding this comment

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

I don't think this is solving the problem presented in the issue. The problem seems to be that incorrect values are being formatted

Copy link
Member Author

Choose a reason for hiding this comment

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

So we could just subtract one from the max amount, how it was proposed here?

@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!

@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2023

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!

@github-actions github-actions bot added the Stale label May 4, 2023
@github-actions github-actions bot removed the Stale label May 8, 2023
@ValarDragon
Copy link
Member

Closing for staleness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v15.x backport patches to v15.x branch C:x/gamm Changes, features and bugs related to the gamm module. V:state/compatible/backport State machine compatible PR, should be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message when trying to Exit 100% of a pool
4 participants