Skip to content

Commit

Permalink
Update user origin transactions revenue
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-xiong committed Nov 14, 2023
1 parent 68b04c6 commit bd27d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/get_users_spot_transactions_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_current_price(symbol, user_id)

def get_revenue(trade_type, amount, cost, qty, current_price)
if trade_type == 'sell'
amount - cost
amount - cost * qty
else
current_price * qty - amount
end
Expand Down

0 comments on commit bd27d99

Please sign in to comment.