-
Notifications
You must be signed in to change notification settings - Fork 607
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
[Chore] Remove SF partial migration from balancer to CL #5874
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
luv2delete code
We might also want to remove this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@stackman27 Can you modify this osmosis/x/superfluid/keeper/migrate.go Lines 318 to 333 in d70e4e1
To just check if they are equal? Other than that it looks good to me |
added check around this! lmk what you think |
@@ -84,8 +88,6 @@ func (k Keeper) migrateSuperfluidBondedBalancerToConcentrated(ctx sdk.Context, | |||
return 0, sdk.Int{}, sdk.Int{}, sdk.Dec{}, 0, 0, 0, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should just take in the lock ID and not the sharesToMigrate, and instead just pull the shares directly in this method. This API only made sense when shares to migrate was chooseable which it no longer is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one of the thought process i had was since we only call the migration functions using RouteLockedBalancerToConcentratedMigration
and MigrateUnlockedPositionFromBalancerToConcentrated
does allow partial migration, i wanted to keep sharesToMigrate. For all the private migration functions like migrateSuperfluidBondedBalancerToConcentrated
we can just default it to the entire lock coins which we do in validateSharesToMigrateUnlockAndExitBalancerPool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see yeah, that makes sense, thanks!
c592b5f
to
6829d30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-reviewed and its LGTM, merging, thanks!
Closes: #XXX
What is the purpose of the change
Remove Partial Migration
Testing and Verifying
Remove Partial Migration Tests
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)