FjordStaking.sol::ClaimReward(bool) penaltyAmount gives inaccurate penalty when dividing.
The division operator in solidity for thepenaltyAmount variable gives integer result. There is a chance of off-by-one error when the rewardAmountis odd.
The user will not get exactly 50% by losing 1 amount of reward every operation when the rewardAmount is an odd number.
None
Give an exclusive formula for rewardAmountwhenever the rewardAmountis odd or make sure that rewardAmountwill never be odd.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.