1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
This commit is contained in:
Andrew 2018-06-10 02:26:36 +03:00
parent 82e81b9a21
commit 71364c92f8

View File

@ -50,7 +50,8 @@ func contentFrom(positions *AllPositionsResponse) string {
colorName := Config.UString("wtf.mods.blockfolio.colors.name") colorName := Config.UString("wtf.mods.blockfolio.colors.name")
colorGrows := Config.UString("wtf.mods.blockfolio.colors.grows") colorGrows := Config.UString("wtf.mods.blockfolio.colors.grows")
colorDrop := Config.UString("wtf.mods.blockfolio.colors.drop") colorDrop := Config.UString("wtf.mods.blockfolio.colors.drop")
totalFiat := 0.0 var totalFiat float32
totalFiat = 0.0
for i := 0; i < len(positions.PositionList); i++ { for i := 0; i < len(positions.PositionList); i++ {
colorForChange := colorGrows colorForChange := colorGrows
if positions.PositionList[i].TwentyFourHourPercentChangeFiat <= 0 { if positions.PositionList[i].TwentyFourHourPercentChangeFiat <= 0 {