fix deposit order fee calc

This commit is contained in:
João Geonizeli
2021-09-06 12:52:08 -03:00
parent 1c4cbb4522
commit d232033ef6
2 changed files with 14 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ class BuildDepositOrder
DepositOrder.new(
user_id: user_id,
paid_amount_cents: paid_amount_cents,
received_amount_cents: paid_amount_cents + (paid_amount_cents * DEPOSIT_FEE)
received_amount_cents: paid_amount_cents - (paid_amount_cents * DEPOSIT_FEE)
)
end
end