forcefully round up initial deposit during the breakout
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
566bf34feb
commit
542428625a
@ -53,7 +53,9 @@ contract GhostWarmup is IGhostWarmup {
|
||||
if (msg.sender != STAKING) revert NotStakingContract();
|
||||
|
||||
Claim storage info = _warmupInfo[who];
|
||||
uint256 mm = mulmod(info.deposit, payout, info.payout);
|
||||
uint256 depositReduction = FullMath.mulDiv(info.deposit, payout, info.payout);
|
||||
if (mm > 0) depositReduction += 1;
|
||||
|
||||
info.deposit -= depositReduction;
|
||||
info.payout -= payout;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user