get bonus amount from tx

Stephen Paul Weber created

Change summary

bin/process_pending_btc_transactions | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

bin/process_pending_btc_transactions 🔗

@@ -176,7 +176,7 @@ class Customer
 		return unless tx.save
 
 		tx.bonus&.save
-		notify_btc_credit(txid, btc_amount, fiat_amount, bonus)
+		notify_btc_credit(txid, btc_amount, fiat_amount, tx.bonus_amount)
 	end
 
 	def notify_btc_credit(txid, btc_amount, fiat_amount, bonus)