mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +00:00
save
This commit is contained in:
parent
b76263be36
commit
4ebfcc2bbd
2 changed files with 22 additions and 12 deletions
|
@ -167,7 +167,7 @@ class LightningInvoicePage extends BasePage {
|
|||
min = bitcoinAmountToLightningString(amount: int.parse(min) ~/ 1000);
|
||||
return Expanded(
|
||||
child: Text(
|
||||
"A setup fee of 0.4% with a minimum of ${min} sats will be applied upon receiving this invoice.",
|
||||
S.of(context).lightning_invoice_min(min),
|
||||
maxLines: 3,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
|
|
|
@ -9,6 +9,7 @@ import 'package:cake_wallet/utils/brightness_util.dart';
|
|||
import 'package:cake_wallet/utils/show_bar.dart';
|
||||
import 'package:cake_wallet/view_model/dashboard/receive_option_view_model.dart';
|
||||
import 'package:cake_wallet/view_model/lightning_view_model.dart';
|
||||
import 'package:cw_bitcoin/bitcoin_amount_format.dart';
|
||||
import 'package:cw_core/receive_page_option.dart';
|
||||
import 'package:cw_lightning/lightning_receive_page_option.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
@ -199,7 +200,15 @@ class LightningReceiveOnchainPage extends BasePage {
|
|||
margin: EdgeInsets.only(left: 12, bottom: 48, right: 12),
|
||||
child: Image.asset("assets/images/warning.png"),
|
||||
),
|
||||
Expanded(
|
||||
FutureBuilder(
|
||||
future: lightningViewModel.invoiceLimitsSats(),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.data == null) {
|
||||
return SizedBox();
|
||||
}
|
||||
String min = (snapshot.data as List<String>)[0];
|
||||
min = bitcoinAmountToLightningString(amount: int.parse(min) ~/ 1000);
|
||||
return Expanded(
|
||||
child: Text(
|
||||
"Send more than 20,029 sats and up to 3,998,387 sats to this address. A setup fee of 0.4% with a minimum of 2,079 sats will be applied upon receiving this invoice. This will convert any received Bitcoin into Lightning. An on-chain fee will be applied. This address can only be used once.",
|
||||
maxLines: 10,
|
||||
|
@ -209,7 +218,8 @@ class LightningReceiveOnchainPage extends BasePage {
|
|||
color: Theme.of(context).extension<DashboardPageTheme>()!.textColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue