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

contracts: Migration, with LQTY Merkle distribution, end to end #527

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bingen
Copy link
Collaborator

@bingen bingen commented Apr 20, 2021

Given a block number for the migration (defined in migration/constants.js), queries original LQTY balances from mainnet, generates merkle tree, deploys contracts with the new version, claims the original balances in the new LQTY token and checks (using a mainnet fork). Community Issuance is adjusted accordingly, so the new one would follow the same pace as the original one.

Run it with the following commands:

yarn migrate:prepare

Removes output from previous executions, optional. It will force querying again from the blockchain.

yarn migrate:query

Queries and processes all previous LQTY balances. Queries to the graph/blockchain take ~4h.

yarn merkle:build

Builds a Merkle Tree from the queried balances obtained in the previous step.

yarn merkle:test

Forks mainnet, deploys contracts V2, claims new LQTY tokens for all users and check that balances are right.

@bingen bingen added enhancement New feature or request backend labels Apr 20, 2021
@bingen bingen added this to the v2 milestone Apr 20, 2021
@bingen bingen requested a review from RickGriff April 20, 2021 15:53
@bingen bingen self-assigned this Apr 20, 2021
Modify LQTYToken too to adapt it to migration.
@bingen bingen changed the title contracts: Implement Community Issuance with Merkle distribution contracts: Migration to V2, with LQTY Merkle distribution, end to end Apr 30, 2021
@bingen bingen removed this from the v2 milestone Mar 3, 2023
@bingen bingen changed the title contracts: Migration to V2, with LQTY Merkle distribution, end to end contracts: Migration, with LQTY Merkle distribution, end to end Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant