distribution fix re-fixed

This commit is contained in:
HojouFotytu 2021-02-18 18:06:52 +09:00
parent 34662bf6f0
commit c2718c7dbd
1 changed files with 9 additions and 12 deletions

View File

@ -182,8 +182,6 @@ namespace Monitor.Pages
{
leverage = 1;
}
else
{
if (sellStrategyText.Contains("PENDING"))
{
PendingBalance = PendingBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
@ -197,7 +195,6 @@ namespace Monitor.Pages
PairsBalance = PairsBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
}
}
}
totalCurrentValue = PendingBalance + DCABalance + PairsBalance + AvailableBalance;
AssetDistributionData = "[";
AssetDistributionData += "{label: 'Pairs',color: '#82E0AA',value: '" + PairsBalance.ToString("0.00", new System.Globalization.CultureInfo("en-US")) + "'},";