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

🐛 rewards: fix released calculation #725

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

santichez
Copy link
Collaborator

No description provided.

Copy link

openzeppelin-code bot commented May 24, 2024

🐛 rewards: fix released calculation

Generated at commit: 1bdac4a2f992c42586458ff395f6cb4f57c2b109

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
3
0
6
24
34
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

Copy link

codecov bot commented May 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.14%. Comparing base (bb38a54) to head (1bdac4a).

Additional details and impacted files
@@                Coverage Diff                 @@
##           fix-review-130     #725      +/-   ##
==================================================
- Coverage           89.19%   89.14%   -0.05%     
==================================================
  Files                  18       18              
  Lines                2027     2027              
  Branches              273      332      +59     
==================================================
- Hits                 1808     1807       -1     
+ Misses                208      207       -1     
- Partials               11       13       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

/// @param market The market to get the release rate.
/// @param reward The reward asset.
/// @return The release reward rate.
function releaseRate(Market market, ERC20 reward) external view returns (uint256) {
Copy link
Member

Choose a reason for hiding this comment

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

@santichez can we add coverage for this new function?

@santichez santichez force-pushed the fix-review-154 branch 5 times, most recently from 2f5c8ba to ca93c22 Compare June 5, 2024 14:31
Base automatically changed from fix-review-130 to fix-review June 5, 2024 19:05
@cruzdanilo cruzdanilo merged commit 1bdac4a into fix-review Jun 5, 2024
2 of 3 checks passed
@cruzdanilo cruzdanilo deleted the fix-review-154 branch June 5, 2024 19:05
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.

3 participants