Skip to content

Commit

Permalink
Add total liquidity to web API summary
Browse files Browse the repository at this point in the history
  • Loading branch information
lwYeo committed Aug 10, 2021
1 parent 422a5b2 commit ec3ffcc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions Crypto LP Compounder/Compounder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,23 @@ string[] ICompounder.Summary
$" {_NextLoopTime - DateTimeOffset.Now:hh' hr 'mm' min 'ss' sec'}" +
$" ({_NextLoopTime:yyyy-MM-ddTHH:mm:ssK})"
,
$"Pending reward value: {_Farm.CurrentPendingReward.Value.Value:n9} {_Farm.CurrentPendingReward.Value.Symbol}" +
$"Total liquidity:" +
$" {_Farm.CurrentDeposit.FiatValue.Value + _Farm.CurrentPendingReward.FiatValue.Value:n2} {_Farm.CurrentDeposit.FiatValue.Symbol} /" +
$" {_Farm.CurrentDeposit.ChainValue.Value + _Farm.CurrentPendingReward.ChainValue.Value:n9} {_Farm.CurrentDeposit.ChainValue.Symbol}"
,
$"Pending reward: {_Farm.CurrentPendingReward.Value.Value:n9} {_Farm.CurrentPendingReward.Value.Symbol}" +
$" ({_Farm.CurrentPendingReward.FiatValue.Value:n2} {_Farm.CurrentPendingReward.FiatValue.Symbol} /" +
$" {_Farm.CurrentPendingReward.ChainValue.Value:n9} {_Farm.CurrentPendingReward.ChainValue.Symbol})"
,
$"Deposit value: {_Farm.CurrentDeposit.Value.Value:n9} {_Farm.CurrentDeposit.Value.Symbol}" +
$"Current deposit: {_Farm.CurrentDeposit.Value.Value:n9} {_Farm.CurrentDeposit.Value.Symbol}" +
$" ({_Farm.CurrentDeposit.FiatValue.Value:n2} {_Farm.CurrentDeposit.FiatValue.Symbol} /" +
$" {_Farm.CurrentDeposit.ChainValue.Value:n9} {_Farm.CurrentDeposit.ChainValue.Symbol})"
,
$"Underlying Token A deposit value: {_Farm.UnderlyingTokenA_Deposit.Value.Value:n9} {_Farm.UnderlyingTokenA_Deposit.Value.Symbol}" +
$"Underlying Token A deposit: {_Farm.UnderlyingTokenA_Deposit.Value.Value:n9} {_Farm.UnderlyingTokenA_Deposit.Value.Symbol}" +
$" ({_Farm.UnderlyingTokenA_Deposit.FiatValue.Value:n2} {_Farm.UnderlyingTokenA_Deposit.FiatValue.Symbol} /" +
$" {_Farm.UnderlyingTokenA_Deposit.ChainValue.Value:n9} {_Farm.UnderlyingTokenA_Deposit.ChainValue.Symbol})"
,
$"Underlying Token B deposit value: {_Farm.UnderlyingTokenB_Deposit.Value.Value:n9} {_Farm.UnderlyingTokenB_Deposit.Value.Symbol}" +
$"Underlying Token B deposit: {_Farm.UnderlyingTokenB_Deposit.Value.Value:n9} {_Farm.UnderlyingTokenB_Deposit.Value.Symbol}" +
$" ({_Farm.UnderlyingTokenB_Deposit.FiatValue.Value:n2} {_Farm.UnderlyingTokenB_Deposit.FiatValue.Symbol} /" +
$" {_Farm.UnderlyingTokenB_Deposit.ChainValue.Value:n9} {_Farm.UnderlyingTokenB_Deposit.ChainValue.Symbol})"
,
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.8</Version>
<Version>0.1.9</Version>
<RepositoryType>GitHub</RepositoryType>
<RepositoryUrl>https://github.com/lwYeo/CryptoLP_Compounder</RepositoryUrl>
<Product>Crypto LP Compounder</Product>
Expand Down
2 changes: 1 addition & 1 deletion WebApi/Controllers/InstancesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace WebApi.Controllers
[Route("[controller]")]
public class InstancesController : ControllerBase
{
public InstancesController(ILogger<InstancesController> logger)
public InstancesController(ILogger<InstancesController> _)
{
}

Expand Down

0 comments on commit ec3ffcc

Please sign in to comment.