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

[audit] #7: Improved values and fixed units for ExponentialPremiumPrice testing #58

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

Keshavrajsinghal
Copy link
Contributor

From Spearbit

Description
Note that how endValue calculated in the ExponentialPremiumPriceOracle.constructor:
endValue = startPremium >> totalDays;
totalDays is supposed to half startPremium for every day in includes and thus its unit needs to be in days and not seconds.

Recommendation
Use a smaller realistic value for totalDays and remove the days time unit

@stevieraykatz stevieraykatz merged commit 8d566a0 into main Jul 9, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants