diff --git a/engine/balances.go b/engine/balances.go index 37d4b5201..6766ea55d 100644 --- a/engine/balances.go +++ b/engine/balances.go @@ -285,11 +285,11 @@ func (b *Balance) GetValue() float64 { } func (b *Balance) AddValue(amount float64) { - b.SetValue(b.Value + amount) + b.SetValue(b.GetValue() + amount) } func (b *Balance) SubstractValue(amount float64) { - b.SetValue(b.Value - amount) + b.SetValue(b.GetValue() - amount) } func (b *Balance) SetValue(amount float64) {