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

Add ability to reweight target basket #1022

Merged
merged 19 commits into from
Dec 15, 2023
Merged

Add ability to reweight target basket #1022

merged 19 commits into from
Dec 15, 2023

Conversation

tbrent
Copy link
Collaborator

@tbrent tbrent commented Dec 5, 2023

This turned out to be simpler than I thought because you don't actually need to forbid redemptions from previous basket nonces of different worths. I want the reviewer to think through this to confirm, though.

Only annoying part was we hit contract size limit and had to move to a slightly less readable way of applying the governance modifier.

Regarding tests: freshBasketHandler was no longer required now that governance can make an RToken revaluable.

Copy link

openzeppelin-code bot commented Dec 5, 2023

Add ability to reweight target basket

Generated at commit: 1db878c14974e711e663547d7044e44df431d2b6

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
1
0
18
36
57
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@tbrent tbrent marked this pull request as ready for review December 6, 2023 00:44
@tbrent tbrent requested a review from akshatmittal December 6, 2023 00:46
@tbrent tbrent changed the title Add ability to change target basket, configurable by governance Add ability to reweight target basket Dec 6, 2023
@akshatmittal
Copy link
Member

This PR is much smaller than I expected, haha.

@tbrent
Copy link
Collaborator Author

tbrent commented Dec 6, 2023

This PR is much smaller than I expected, haha.

It was much larger before

@tbrent
Copy link
Collaborator Author

tbrent commented Dec 6, 2023

Holding off on reviewing/merging until we decide on immutable/mutable

@tbrent tbrent force-pushed the change-target-basket branch from 36cb04d to a8fac29 Compare December 7, 2023 21:58
@tbrent
Copy link
Collaborator Author

tbrent commented Dec 8, 2023

@akshatmittal ready for review

@tbrent
Copy link
Collaborator Author

tbrent commented Dec 8, 2023 via email

@tbrent tbrent merged commit 93699a4 into 3.2.0 Dec 15, 2023
9 checks passed
@tbrent tbrent deleted the change-target-basket branch December 15, 2023 16:09
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.

2 participants