distribution fix re-fixed
This commit is contained in:
parent
34662bf6f0
commit
c2718c7dbd
|
@ -182,8 +182,6 @@ namespace Monitor.Pages
|
||||||
{
|
{
|
||||||
leverage = 1;
|
leverage = 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (sellStrategyText.Contains("PENDING"))
|
if (sellStrategyText.Contains("PENDING"))
|
||||||
{
|
{
|
||||||
PendingBalance = PendingBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
|
PendingBalance = PendingBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
|
||||||
|
@ -197,7 +195,6 @@ namespace Monitor.Pages
|
||||||
PairsBalance = PairsBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
|
PairsBalance = PairsBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
totalCurrentValue = PendingBalance + DCABalance + PairsBalance + AvailableBalance;
|
totalCurrentValue = PendingBalance + DCABalance + PairsBalance + AvailableBalance;
|
||||||
AssetDistributionData = "[";
|
AssetDistributionData = "[";
|
||||||
AssetDistributionData += "{label: 'Pairs',color: '#82E0AA',value: '" + PairsBalance.ToString("0.00", new System.Globalization.CultureInfo("en-US")) + "'},";
|
AssetDistributionData += "{label: 'Pairs',color: '#82E0AA',value: '" + PairsBalance.ToString("0.00", new System.Globalization.CultureInfo("en-US")) + "'},";
|
||||||
|
|
Loading…
Reference in New Issue