Skip to content

Commit

Permalink
Merge pull request #14 from Simochevsky/master
Browse files Browse the repository at this point in the history
- Update sell&buy price with latest market changes.
  • Loading branch information
Slivo-fr authored Jul 5, 2021
2 parents ccc8b4d + c59bf6f commit 808756f
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 808756f

Please sign in to comment.