mirror of
https://github.com/we-promise/sure
synced 2026-04-25 17:15:07 +02:00
Fix Binance USD converter custom rate keyword (#1414)
This commit is contained in:
@@ -21,7 +21,7 @@ module BinanceAccount::UsdConverter
|
||||
return [ amount.to_d, true, nil ]
|
||||
end
|
||||
|
||||
converted = Money.new(amount, "USD").exchange_to(target_currency, fallback_rate: rate.rate).amount
|
||||
converted = Money.new(amount, "USD").exchange_to(target_currency, custom_rate: rate.rate).amount
|
||||
stale = rate.date != date
|
||||
rate_date = stale ? rate.date : nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user