~singpolyma/jmp-pay

1f738ae592869c413d9302aea801cc1c97bc190e — Stephen Paul Weber 1 year, 11 months ago c1aab03
Does not take both those arguments anymore
1 files changed, 1 insertions(+), 3 deletions(-)

M bin/process_pending_btc_transactions
M bin/process_pending_btc_transactions => bin/process_pending_btc_transactions +1 -3
@@ 213,9 213,7 @@ class Customer
	end

	def add_btc_credit(txid, btc_amount, fiat_amount)
		return unless add_transaction(
			txid, btc_amount, fiat_amount, "Bitcoin payment"
		)
		return unless add_transaction(txid, fiat_amount, "Bitcoin payment")
		if (bonus = plan.bonus_for(fiat_amount))
			add_transaction("bonus_for_#{txid}", bonus, "Bitcoin payment bonus")
		end