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

fix: hardcoded emission supply #396

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Conversation

baroooo
Copy link
Contributor

@baroooo baroooo commented Mar 11, 2024

Description

We forgot to update hardcoded emission supply in the emission contract after making allocations parametrised. This may cause issues with the emission calculation when the emission supply in the token contract is not equal to the hardcoded emission supply in the emission contract.

This fix removes the hardcoded emission supply, and sets it through init call from the governance factory.

Other changes

No

Tested

Fixed unit tests

Related issues

Copy link

openzeppelin-code bot commented Mar 11, 2024

fix: hardcoded emission supply

Generated at commit: bff6e836f208bdeca9e773e5792a78a89c74a4ca

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
3
0
13
38
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

@baroooo baroooo merged commit d174c8a into develop Mar 12, 2024
6 checks passed
@baroooo baroooo deleted the fix-hardcoded-emission-supply branch March 12, 2024 09:19
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.

Emission Supply Bug
3 participants