Skip to content

Commit

Permalink
Fix summary formatting issue in Web API
Browse files Browse the repository at this point in the history
  • Loading branch information
lwYeo committed Aug 9, 2021
1 parent 9874bb0 commit 3f756d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Crypto LP Compounder/Compounder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ string[] ICompounder.Summary
return new[] {
$"Current APR: {_Farm.CurrentAPR.Value.ToString(_Farm.CurrentAPR.Value < 1000 ? "n3" : "n0")} {_Farm.CurrentAPR.Symbol}" +
$" ({_Farm.CurrentDeposit.FiatValue.Value * (_Farm.CurrentAPR.Value / 100):n2} {_Farm.CurrentDeposit.FiatValue.Symbol} /" +
$" ({_Farm.CurrentDeposit.ChainValue.Value * (_Farm.CurrentAPR.Value / 100):n2} {_Farm.CurrentDeposit.ChainValue.Symbol})"
$" {_Farm.CurrentDeposit.ChainValue.Value * (_Farm.CurrentAPR.Value / 100):n2} {_Farm.CurrentDeposit.ChainValue.Symbol})"
,
$"Optimal APY: {_Farm.OptimalAPY.Value.ToString(_Farm.OptimalAPY.Value < 1000 ? "n3" : "n0")} {_Farm.OptimalAPY.Symbol}" +
$" ({_Farm.CurrentDeposit.FiatValue.Value * (_Farm.OptimalAPY.Value / 100):n2} {_Farm.CurrentDeposit.FiatValue.Symbol} /" +
$" ({_Farm.CurrentDeposit.ChainValue.Value * (_Farm.OptimalAPY.Value / 100):n2} {_Farm.CurrentDeposit.ChainValue.Symbol})" +
$" {_Farm.CurrentDeposit.ChainValue.Value * (_Farm.OptimalAPY.Value / 100):n2} {_Farm.CurrentDeposit.ChainValue.Symbol})" +
$" ({_Farm.OptimalCompoundsPerYear} compounds per year)"
,
$"Next compound in {(_NextLoopTime - DateTimeOffset.Now).TotalDays:n0} d" +
Expand Down
2 changes: 1 addition & 1 deletion Crypto LP Compounder/Crypto LP Compounder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Copyright>Copyright © lwYeo 2021</Copyright>
<Company>lwYeo@github</Company>
<Authors>lwYeo</Authors>
<Version>0.1.6</Version>
<Version>0.1.7</Version>
<RepositoryType>GitHub</RepositoryType>
<RepositoryUrl>https://github.com/lwYeo/CryptoLP_Compounder</RepositoryUrl>
<Product>Crypto LP Compounder</Product>
Expand Down
2 changes: 2 additions & 0 deletions Crypto LP Compounder/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ private static async Task Main(string[] args)
_IsTerminate = true;
_IsPause = true;

await FlushConsoleLogsAsync();

LogLineConsole();
LogLineConsole(t.Exception.Message);

Expand Down

0 comments on commit 3f756d5

Please sign in to comment.