mirror of
https://github.com/netscrawler/changeAPI.git
synced 2026-09-05 08:29:36 +00:00
v0.1.1
This commit is contained in:
@@ -42,7 +42,6 @@ func (c *Converter) Convert(
|
||||
return 0, 0, fmt.Errorf("%s: %w", op, err)
|
||||
}
|
||||
|
||||
convertedAmount = uint32(float32(amount) * rate.Rate)
|
||||
|
||||
convertedAmount = uint32(float32(amount) / rate.Rate)
|
||||
return convertedAmount, rate.Rate, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user