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 rewardAmount
is 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 rewardAmount
whenever the rewardAmount
is odd or make sure that rewardAmount
will 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.