lib/simple_swap.rb 🔗
@@ -39,7 +39,7 @@ class SimpleSwap
fixed: false,
currency_from: currency,
currency_to: "btc",
- amount: currency == "xmr" ? 0.1 : 0.01,
+ amount: currency.downcase == "xmr" ? 0.1 : 0.01,
address_to: target
}.to_json
).then(&method(:parse))