fix: fix amount mapping for OCP (#2190)

This commit is contained in:
Konstantin Ullrich
2025-04-11 16:23:32 +02:00
committed by GitHub
parent 2445c2ae84
commit 37ede52ea6
@@ -152,7 +152,7 @@ class OpenCryptoPayService {
String _getAmountByAsset(OpenCryptoPayRequest request, CryptoCurrency asset) {
final method = _getMethod(asset);
return request.methods[method]!
.firstWhere((e) => e.symbol == asset.title)
.firstWhere((e) => e.symbol.toUpperCase() == asset.title.toUpperCase())
.amount;
}