Cw 1307 debug swap creation error (#2713)

* fix amount validator to include min and max values

* add BitcoinVN workaround

* fix Chainflip casting for decoded JSON

---------

Co-authored-by: Serhii-Borodenko <17529954+Serhii-Borodenko@users.noreply.github.com>
This commit is contained in:
Serhii
2025-12-10 06:09:31 +02:00
committed by GitHub
co-authored by Serhii-Borodenko
parent 4cb6bb3686
commit b6fa059e54
3 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -112,7 +112,7 @@ class AmountMinValidator extends Validator<String> {
return false;
}
return valueInDouble > minInDouble;
return valueInDouble >= minInDouble;
}
double? parseToDouble(String value) {
@@ -146,7 +146,7 @@ class AmountMaxValidator extends Validator<String> {
if (valueInDouble == null || maxInDouble == null) {
return false;
}
return valueInDouble < maxInDouble;
return valueInDouble <= maxInDouble;
}
double? parseToDouble(String value) {