forcefully round up initial deposit during the breakout

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-03-26 20:22:56 +03:00
parent 566bf34feb
commit 542428625a
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB

View File

@ -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;