storagenode/payouts: estimation payout heldamount rounding removed

Change-Id: I9fdc7cda15de0df8875436b0b376f0e6479d3aeb
This commit is contained in:
Qweder93 2020-10-22 15:05:37 +03:00 committed by Nikolai Siedov
parent 0ec685b173
commit c409194d43

View File

@ -47,7 +47,7 @@ func (pm *PayoutMonthly) SetDiskSpacePayout(diskSpacePrice int64) {
// SetHeldAmount counts held amount for PayoutMonthly object. // SetHeldAmount counts held amount for PayoutMonthly object.
func (pm *PayoutMonthly) SetHeldAmount() { func (pm *PayoutMonthly) SetHeldAmount() {
amount := (pm.DiskSpacePayout + pm.EgressBandwidthPayout + pm.EgressRepairAuditPayout) * pm.HeldRate / 100 amount := (pm.DiskSpacePayout + pm.EgressBandwidthPayout + pm.EgressRepairAuditPayout) * pm.HeldRate / 100
pm.Held = RoundFloat(amount) pm.Held = amount
} }
// SetPayout counts payout amount for PayoutMonthly object. // SetPayout counts payout amount for PayoutMonthly object.