-
Notifications
You must be signed in to change notification settings - Fork 592
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: add back scaling factor choice #7951
Conversation
WalkthroughThis update refines the migration process for claimable incentives, enabling the selective migration of specific incentives. It includes changes across various files to support this functionality, such as adjustments in constants, upgrades logic, and tests. Additionally, a new feature for calculating incentive scaling factors based on pool IDs has been introduced, enhancing the precision of incentive calculations. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
} | ||
|
||
// If the given pool ID is in the migrated incentive accumulator pool IDs (v24), we return the perUnitLiqScalingFactor. | ||
_, isMigrated = types.MigratedIncentiveAccumulatorPoolIDsV24[poolID] |
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.
This is the most important line of this PR IMO, now we have a second check to return scaling factors depending on the v24 migration map
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.
This LGTM, but certainly should have a second ACK given how serious the effects of implementing this wrong would be
How long did migration take now? |
less than 10 seconds, posted a video internally in slack |
* chore: add back scaling factor choice * chore: add more pools and test * chore: add changelog * chore: fix typo and test * chore: remove old changelog entry (cherry picked from commit f110508) # Conflicts: # CHANGELOG.md
* chore: add back scaling factor choice (#7951) * chore: add back scaling factor choice * chore: add more pools and test * chore: add changelog * chore: fix typo and test * chore: remove old changelog entry (cherry picked from commit f110508) # Conflicts: # CHANGELOG.md * chore: fix CHANGELOG.md --------- Co-authored-by: PaddyMc <paddymchale@hotmail.com>
What is the purpose of the change
This PR migrates the selected cl pool incentives to the new scaling factor, in this PR we add back in the code path choice for selected pool scaling factors
currently the pool added to this migration are:
How to test
To test this PR you need to use the
in-place-testnet
Download the latest snapshot and genesis
You need to install v23.0.8 to run the following command
Wait until the node stops, build this branch and run
This will run the v24 migration and migrate selected CL pool incentive accumlators
How to test manually:
Summary by CodeRabbit
New Features
Refactor
Tests