Pass the current coin as context!

pull/154/head
Simon Roberts 3 years ago
parent e638040372
commit 6d90edfefd

@ -436,7 +436,7 @@ func (ct *Cointop) SetPortfolioHoldings() error {
}
input := string(b[:n])
holdings, err := eval.EvaluateExpressionToFloat64(input)
holdings, err := eval.EvaluateExpressionToFloat64(input, coin)
if err != nil {
// leave value as is if expression can't be evaluated
return nil

Loading…
Cancel
Save