~singpolyma/jmp-pay

902324df7d57030d273438bc3c2c0079e65be12f — Stephen Paul Weber 1 year, 1 month ago 404eb9b
get bonus amount from tx
1 files changed, 1 insertions(+), 1 deletions(-)

M bin/process_pending_btc_transactions
M bin/process_pending_btc_transactions => bin/process_pending_btc_transactions +1 -1
@@ 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)