Skip to content

Commit

Permalink
feat: decimal format for brij order (#1679)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Bubochkin <[email protected]>
  • Loading branch information
Merculiar and ookami-kb authored Jan 31, 2025
1 parent e58e755 commit e1b66d2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ class KycRepository extends ChangeNotifier {
}

Future<String> createOnRampOrder({
required String cryptoAmount,
required double cryptoAmount,
required String cryptoCurrency,
required String fiatAmount,
required double fiatAmount,
required String fiatCurrency,
required String partnerPK,
}) =>
Expand All @@ -150,9 +150,9 @@ class KycRepository extends ChangeNotifier {
);

Future<String> createOffRampOrder({
required String cryptoAmount,
required double cryptoAmount,
required String cryptoCurrency,
required String fiatAmount,
required double fiatAmount,
required String fiatCurrency,
required String partnerPK,
required String bankName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ class BrijOffRampOrderService implements Disposable {
}

final orderId = await _kycRepository.createOffRampOrder(
cryptoAmount: submittedAmount.value.toString(),
cryptoAmount: submittedAmount.decimal.toDouble(),
cryptoCurrency: submittedAmount.cryptoCurrency.token.symbol,
fiatAmount: receiveAmount.value.toString(),
fiatAmount: receiveAmount.decimal.toDouble(),
fiatCurrency: receiveAmount.currency.symbol,
partnerPK: partnerAuthPk,
bankAccount: validUser.accountNumber ?? '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
cryptoCurrency: receiveAmount.cryptoCurrency.token.symbol,
fiatAmount: submittedAmount.value.toString(),
fiatAmount: submittedAmount.decimal.toDouble(),
fiatCurrency: submittedAmount.currency.symbol,
partnerPK: partnerAuthPk,
);
Expand Down
10 changes: 5 additions & 5 deletions packages/espressocash_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1234,16 +1234,16 @@ packages:
path: "../jupiter_aggregator"
relative: true
source: path
version: "0.0.4"
version: "0.0.5"
kyc_client_dart:
dependency: "direct main"
description:
path: "."
ref: "1ed0206a55b3dc33b255a0164c6eefa4008b6d76"
resolved-ref: "1ed0206a55b3dc33b255a0164c6eefa4008b6d76"
ref: "6e43008b3a95e3cb503244c437f7c336a280d65d"
resolved-ref: "6e43008b3a95e3cb503244c437f7c336a280d65d"
url: "https://github.com/espresso-cash/kyc_client_dart.git"
source: git
version: "1.0.0"
version: "1.0.1"
leak_tracker:
dependency: transitive
description:
Expand Down Expand Up @@ -1847,7 +1847,7 @@ packages:
path: "../solana"
relative: true
source: path
version: "0.31.0+1"
version: "0.31.2"
solana_mobile_wallet:
dependency: "direct main"
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/espressocash_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencies:
kyc_client_dart:
git:
url: https://github.com/espresso-cash/kyc_client_dart.git
ref: 1ed0206a55b3dc33b255a0164c6eefa4008b6d76
ref: 6e43008b3a95e3cb503244c437f7c336a280d65d
logging: ^1.2.0
meta: ^1.10.0
mixpanel_flutter: ^2.2.0
Expand Down

0 comments on commit e1b66d2

Please sign in to comment.