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

Extended Post Upgrade Testing #107

Open
2 tasks
RonTuretzky opened this issue Nov 29, 2024 · 0 comments
Open
2 tasks

Extended Post Upgrade Testing #107

RonTuretzky opened this issue Nov 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@RonTuretzky
Copy link
Collaborator

RonTuretzky commented Nov 29, 2024

Bug Description

v1.0.3 introduced a bug where a new variable (previousCycleStartingBlock) was introduced but not initialized.

This caused voting power enumerated by the contract for voters post-upgrade to reflect their lifetime bread holdings average, rather than the average held during the previous cycle.

A post-mortem on this was created by @subject026 , with code provided here

project Current % Correct % Diff
labour DAO 26.88 19.76 +7.12%
symbiota 21.08 28.71 -7.63%
cca 7.19 9.65 -2.46%
citizen wallet 9.86 10.12 -0.26%
core 23.53 20.43 +3.10%
treasury 11.43 11.32 +0.10%

The results of this deviation (as of 27.11) are estimated to be in the tens of $BREAD, with some projects benefiting from and some losing from this discrepancy.

Next Steps

  • Create an upgrade checklist including checking new variable introduction
  • Create a test which simulates an upgrade from the latest tag and goes through a hardcoded flow
@RonTuretzky RonTuretzky added the bug Something isn't working label Nov 29, 2024
@RonTuretzky RonTuretzky self-assigned this Nov 29, 2024
@RonTuretzky RonTuretzky added documentation Improvements or additions to documentation good first issue Good for newcomers labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant