Fix variable reference

Stephen Paul Weber created

Change summary

lib/btc_sell_prices.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

lib/btc_sell_prices.rb 🔗

@@ -49,8 +49,8 @@ protected
 
 			EM.promise_defer {
 				# OXR gem is not async, so defer to threadpool
-				oxr.update_rates
-				oxr.get_rate("CAD", "USD")
+				@oxr.update_rates
+				@oxr.get_rate("CAD", "USD")
 			}.then do |orate|
 				@redis.set("cad_to_usd", orate, ex: 60 * 60).then { orate }
 			end