diff --git a/structs/utils/calculate-process.go b/structs/utils/calculate-process.go index d6da1a1..60dc8da 100644 --- a/structs/utils/calculate-process.go +++ b/structs/utils/calculate-process.go @@ -7,6 +7,7 @@ import ( ) func CalculateProviderPrice(calculates []v2.CalculateProcess, env map[string]float64) (p v2.ProviderPrice) { + p.OriginalPrice = env["originalPrice"] var calculateStrings = make([]string, 0, len(calculates)) for _, c := range calculates { process, price := c.Run(env) @@ -23,6 +24,7 @@ func CalculateProviderPrice(calculates []v2.CalculateProcess, env map[string]flo } func CalculateSellerPrice(calculates []v2.CalculateProcess, env map[string]float64) (p v2.SellerPrice) { + p.OriginalPrice = env["originalPrice"] var calculateStrings = make([]string, 0, len(calculates)) for _, c := range calculates { process, price := c.Run(env)