Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: decimal format for brij order #1679

Merged
merged 3 commits into from
Jan 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
decimal format for creating order
Merculiar committed Jan 30, 2025
commit 6a4819753913c2dd649246839c7c1b3a73f81134
Original file line number Diff line number Diff line change
@@ -192,9 +192,9 @@ class BrijOffRampOrderService implements Disposable {
}

final orderId = await _kycRepository.createOffRampOrder(
cryptoAmount: submittedAmount.value.toString(),
cryptoAmount: submittedAmount.decimal.toDouble().toString(),
cryptoCurrency: submittedAmount.cryptoCurrency.token.symbol,
fiatAmount: receiveAmount.value.toString(),
fiatAmount: receiveAmount.decimal.toDouble().toString(),
fiatCurrency: receiveAmount.currency.symbol,
partnerPK: partnerAuthPk,
bankAccount: validUser.accountNumber ?? '',
Original file line number Diff line number Diff line change
@@ -123,9 +123,9 @@ class BrijOnRampOrderService implements Disposable {
await _kycRepository.grantPartnerAccess(partnerAuthPk);

final orderId = await _kycRepository.createOnRampOrder(
cryptoAmount: receiveAmount.value.toString(),
cryptoAmount: receiveAmount.decimal.toDouble().toString(),
cryptoCurrency: receiveAmount.cryptoCurrency.token.symbol,
fiatAmount: submittedAmount.value.toString(),
fiatAmount: submittedAmount.decimal.toDouble().toString(),
fiatCurrency: submittedAmount.currency.symbol,
partnerPK: partnerAuthPk,
);