-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audit Fixes QS-17 and rewardRate precision bug (#70)
* fix(Rewarder): added a function to call farm.recoverRewardFunds * Added test cases for recoverRewardFundsOfFarm of Rewarder contract * fix(NormalizeAmountRewarder): handle >18 precision and adjusts total value * Added and updated test cases * refactor(formatting): Rewarder * refactor(Rewarder): _normalizeAmount does not need to check decimals as it is added while configuration * perf(Rewarder): _normalizeAmount uses REWARD_TOKEN_DECIMALS directly from storage * Revert "perf(Rewarder): _normalizeAmount uses REWARD_TOKEN_DECIMALS directly from storage" This reverts commit c86cf2c401d0d7cfa1f5e35c65c6a41fbd17db24. * Updated test cases * perf(Rewarder): _normalizeAmount uses REWARD_TOKEN_DECIMALS directly from storage --------- Co-authored-by: Yash Pitroda <yash.pitroda786@gmail.com>
- Loading branch information
1 parent
e1359d8
commit 8906a6e
Showing
2 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters