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

Update rebase curve parameters and deviation threshold to match mainnet #282

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ahnaguib
Copy link
Contributor

Lower:-0.077
Upper: 0.05
Growth: 45
Deviation threshold 2.5%

Lower:-0.077
Upper: 0.05
Growth: 45
Deviation threshold 2.5%
Copy link

openzeppelin-code bot commented Sep 10, 2024

Update rebase curve parameters and deviation threshold to match mainnet

Generated at commit: 3c12f471b942dec5832e416292bcbee30939f878

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
1
0
5
23
30
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

rebaseFunctionGrowth = int256(3 * (10**DECIMALS));
rebaseFunctionUpperPercentage = int256(10 * (10**(DECIMALS - 2))); // 0.1
rebaseFunctionLowerPercentage = int256((-10) * int256(10**(DECIMALS - 2))); // -0.1
rebaseFunctionGrowth = int256(45 * (10**DECIMALS));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we used 42?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original intent was 45, so we can keep it 45 here and update mainnet on the next proposal

Co-authored-by: Aalavandhan <6264334+aalavandhan@users.noreply.github.com>
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