Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upd
Browse files Browse the repository at this point in the history
Merculiar committed Jan 31, 2025
1 parent 6a48197 commit aeb9b39
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -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,
}) =>
@@ -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,
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.decimal.toDouble().toString(),
cryptoAmount: submittedAmount.decimal.toDouble(),
cryptoCurrency: submittedAmount.cryptoCurrency.token.symbol,
fiatAmount: receiveAmount.decimal.toDouble().toString(),
fiatAmount: receiveAmount.decimal.toDouble(),
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.decimal.toDouble().toString(),
cryptoAmount: receiveAmount.decimal.toDouble(),
cryptoCurrency: receiveAmount.cryptoCurrency.token.symbol,
fiatAmount: submittedAmount.decimal.toDouble().toString(),
fiatAmount: submittedAmount.decimal.toDouble(),
fiatCurrency: submittedAmount.currency.symbol,
partnerPK: partnerAuthPk,
);
6 changes: 3 additions & 3 deletions packages/espressocash_app/pubspec.lock
Original file line number Diff line number Diff line change
@@ -1239,11 +1239,11 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "1ed0206a55b3dc33b255a0164c6eefa4008b6d76"
resolved-ref: "1ed0206a55b3dc33b255a0164c6eefa4008b6d76"
ref: "7b38402d782f320899f94c410494ea63825927b3"
resolved-ref: "7b38402d782f320899f94c410494ea63825927b3"
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:
2 changes: 1 addition & 1 deletion packages/espressocash_app/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ dependencies:
kyc_client_dart:
git:
url: https://github.com/espresso-cash/kyc_client_dart.git
ref: 1ed0206a55b3dc33b255a0164c6eefa4008b6d76
ref: 7b38402d782f320899f94c410494ea63825927b3
logging: ^1.2.0
meta: ^1.10.0
mixpanel_flutter: ^2.2.0

0 comments on commit aeb9b39

Please sign in to comment.