Submitted by 0xw4rd3n
StakingRewards.sol#L126
If the transfer of the reward token fails to the treasury (due to insufficient funds for example), the function _calcRewardIntegral will still update accounting and cause devastating accounting discrepancies in the contract.
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
require(IERC20(reward.token).transfer(treasury, d_reward / 5), "ERROR_MESSAGE");
ryuheimat (Concur) confirmed
Alex the Entreprenerd (judge) decreased severity to Medium and commented:
