Skip to content

Commit

Permalink
Update sell&buy price with latest market changes. Only takes into acc…
Browse files Browse the repository at this point in the history
…ount the first 4 digits.
  • Loading branch information
Simochevsky committed Nov 22, 2020
1 parent ccc8b4d commit c59bf6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Elinor/ClipboardTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ internal static double GetSellPrice(double sell, Profile settings)
}
else
{
result -= .01;
result -= Math.Max(Math.Pow(10, Math.Floor(Math.Log10(result / 1000))), 0.01);
}

return result;
Expand All @@ -67,7 +67,7 @@ internal static double GetBuyPrice(double buy, Profile settings)
}
else
{
result += .01;
result += Math.Max(Math.Pow(10, Math.Floor(Math.Log10(result / 1000))), 0.01);
}

return result;
Expand Down

0 comments on commit c59bf6f

Please sign in to comment.