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

ProtocolFeeController v2 (working migration edition) #1317

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EndymionJkb
Copy link
Collaborator

Description

So... turns out the original plan for two migration scripts (a first simple and a later more comprehensive one) doesn't actually work. We need the full migration even for the first time; the "update" functions must be called by the current fee controller, so can't be used during a migration.

It's actually simpler this way, as there's only one migration script now. The only catch is we have to tolerate the pool creator fee getters failing the first time, as they don't exist in the original fee controller. This is fine the first time, as there are no overrides or pool creators (both of which can be recreated in the new fee controller using permissioned calls from governance and the pool creators respectively, in case we miss one).

For the second and all subsequent migrations, they will work and copy the entire state.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency changes
  • Code refactor / cleanup
  • Optimization: [ ] gas / [ ] bytecode
  • Documentation or wording changes
  • Other

Checklist:

  • The diff is legible and has no extraneous changes
  • Complex code has been commented, including external interfaces
  • Tests have 100% code coverage
  • The base branch is either main, or there's a description of how to merge

Issue Resolution

@EndymionJkb EndymionJkb changed the title Tolerate missing pool creator fee percentage getters ProtocolFeeController v3 (working migration edition) Feb 22, 2025
@EndymionJkb EndymionJkb changed the title ProtocolFeeController v3 (working migration edition) ProtocolFeeController v2 (working migration edition) Feb 22, 2025
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.

1 participant