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

Dual rewards audit fixes #257

Merged
merged 6 commits into from
Aug 20, 2024
Merged

Dual rewards audit fixes #257

merged 6 commits into from
Aug 20, 2024

Conversation

Flocqst
Copy link
Contributor

@Flocqst Flocqst commented Aug 7, 2024

This pull request addresses feedback from recent audit reports by implementing a precision factor adjustment for USDC amounts.

Description

  • Add a PRECISION factor of 1e12 to the _rewardUsdc in the notifyRewardAmount function in order to to convert the USDC rewards to an 18-decimal value
  • Scale down the usdc reward amount back to 6 decimals when calling getReward

Copy link
Contributor

@JaredBorders JaredBorders left a comment

Choose a reason for hiding this comment

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

lets discuss this pr change further during sync

contracts/StakingRewardsV2.sol Outdated Show resolved Hide resolved
@Flocqst Flocqst merged commit a74ee63 into dualRewards Aug 20, 2024
6 of 7 checks passed
@Flocqst Flocqst deleted the dualRewards-audit-fixes branch August 20, 2024 12:37
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