Case insentitive currency code

Stephen Paul Weber created

Change summary

lib/simple_swap.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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))