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,20 +182,17 @@ namespace Monitor.Pages
{ {
leverage = 1; leverage = 1;
} }
if (sellStrategyText.Contains("PENDING"))
{
PendingBalance = PendingBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
}
else if (dcaLogEntry.BuyStrategies.Count > 0)
{
DCABalance = DCABalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
}
else else
{ {
if (sellStrategyText.Contains("PENDING")) PairsBalance = PairsBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
{
PendingBalance = PendingBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
}
else if (dcaLogEntry.BuyStrategies.Count > 0)
{
DCABalance = DCABalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
}
else
{
PairsBalance = PairsBalance + ((dcaLogEntry.Amount * dcaLogEntry.CurrentPrice) / leverage);
}
} }
} }
totalCurrentValue = PendingBalance + DCABalance + PairsBalance + AvailableBalance; totalCurrentValue = PendingBalance + DCABalance + PairsBalance + AvailableBalance;