From e371211f96670ad9579f284e5281f88bca3110f5 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 2 Jan 2024 15:18:00 -0500 Subject: [PATCH] Case insentitive currency code --- lib/simple_swap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simple_swap.rb b/lib/simple_swap.rb index 11e852535f32878ccfbbbc458246705a4acfb2cd..cb1bc72d63f4a47bbe290f66996cfd10104df9d5 100644 --- a/lib/simple_swap.rb +++ b/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))