fixed quotation currency inference

This commit is contained in:
Stephan D
2026-03-04 04:50:31 +01:00
parent 9b794a3065
commit de07b9a792
35 changed files with 928 additions and 182 deletions

View File

@@ -39,8 +39,7 @@ class PaymentProvider extends ChangeNotifier {
String? clientPaymentRef,
Map<String, String>? metadata,
}) async {
if (!_organization.isOrganizationSet)
throw StateError('Organization is not set');
if (!_organization.isOrganizationSet) throw StateError('Organization is not set');
final quoteRef = _quotation.quotation?.quoteRef;
if (quoteRef == null || quoteRef.isEmpty) {
throw StateError('Quotation reference is not set');

View File

@@ -98,7 +98,7 @@ class QuotationIntentBuilder {
}
return FxIntent(
pair: CurrencyPair(base: base, quote: quote),
side: FxSide.buyBaseSellQuote,
side: FxSide.sellBaseBuyQuote,
);
}