just set hard cap on invoice max

This commit is contained in:
Matthew Fosse 2024-03-21 09:18:48 -07:00
parent d0c2c2802b
commit 9f782956ca

View file

@ -84,7 +84,7 @@ abstract class LightningInvoicePageViewModelBase with Store {
state = FailureState('Amount is too small'); state = FailureState('Amount is too small');
return; return;
} }
if (maximum != null && maximum != 0 && amountInCrypto > maximum!) { if (amountInCrypto > 4000000) {
state = FailureState('Amount is too big'); state = FailureState('Amount is too big');
return; return;
} }