Skip to content

Commit

Permalink
Small improvments on stakesplitthreshold calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Swtrse committed Dec 10, 2018
1 parent 85608bc commit 517edd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BusinessLogic/ProcessWallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private decimal CheckForLowerThreshold(decimal stakeSplitThreshold)
DateTime blockdate = TransactionHelper.BaseDate.AddSeconds(AccessWallet.GetTransaction(oldestInput.TxId).BlockTime);
if (blockdate > DateTime.UtcNow.AddDays(-waitDays))
{
newStakeSplitThreshold = oldestInput.Amount > stakeSplitThreshold ? Math.Ceiling(oldestInput.Amount * 0.8M) : Math.Ceiling(oldestInput.Amount);
newStakeSplitThreshold = oldestInput.Amount >= stakeSplitThreshold ? Math.Ceiling(oldestInput.Amount * 0.8M) : Math.Ceiling(oldestInput.Amount);
}

decimal ret = Math.Min(stakeSplitThreshold, newStakeSplitThreshold);
Expand Down

0 comments on commit 517edd2

Please sign in to comment.