fix: divide by 'rate' instead of multiplying by it, so that tests pass

pull/8/head
Inga 🏳‍🌈 11 months ago
parent dd5c719345
commit 61d8b18c0a
  1. 2
      src/transaction/transaction.controller.ts

@ -137,7 +137,7 @@ export class TransactionController {
client_id: transactionInput.client_id,
base_currency: Currency.EUR,
base_amount:
transactionAmount * exchangeRateResponse[transactionInput.currency],
transactionAmount / exchangeRateResponse[transactionInput.currency],
};
const commissionAmount = this.applyRules(

Loading…
Cancel
Save