From 08e55b41321b1b9a9d3540808244412e80809ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Olav?= Date: Mon, 30 Oct 2023 08:14:00 +0100 Subject: [PATCH] multi: rename SOC to SBTC I think this is clearer? I didn't know what SOC was until I saw the comment that this commit deletes --- lib/pages/tabs/withdrawal_tab_page.dart | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/pages/tabs/withdrawal_tab_page.dart b/lib/pages/tabs/withdrawal_tab_page.dart index bcd76802..e44a5592 100644 --- a/lib/pages/tabs/withdrawal_tab_page.dart +++ b/lib/pages/tabs/withdrawal_tab_page.dart @@ -12,10 +12,6 @@ import 'package:sidesail/rpc/rpc.dart'; import 'package:sidesail/withdrawals.dart'; import 'package:stacked/stacked.dart'; -// TODO: the legacy testchain GUI uses the term SCO for sidechain BTC. A bit -// confusing? They are bitcoin, after all. Need to find a nice term. -// SBTC? - @RoutePage() class WithdrawalTabPage extends StatelessWidget { const WithdrawalTabPage({super.key}); @@ -33,7 +29,7 @@ class WithdrawalTabPage extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ SailText.primary14( - 'Your sidechain balance: ${viewModel.sidechainBalance} SCO', + 'Your sidechain balance: ${viewModel.sidechainBalance} SBTC', ), const SizedBox(height: 20), TextFormField( @@ -53,7 +49,7 @@ class WithdrawalTabPage extends StatelessWidget { child: TextFormField( decoration: const InputDecoration( labelText: 'Withdrawal', - suffixText: 'SCO', + suffixText: 'SBTC', ), inputFormatters: [ // digits plus dot @@ -72,7 +68,7 @@ class WithdrawalTabPage extends StatelessWidget { initialValue: viewModel.mainchainFee.toString(), decoration: const InputDecoration( labelText: 'Mainchain Fee', - suffixText: 'SCO', + suffixText: 'SBTC', ), ), ), @@ -84,7 +80,7 @@ class WithdrawalTabPage extends StatelessWidget { initialValue: viewModel.transactionFee.toString(), decoration: const InputDecoration( labelText: 'Transaction Fee', - suffixText: 'SCO', + suffixText: 'SBTC', ), ), const SizedBox(height: 20), @@ -93,7 +89,7 @@ class WithdrawalTabPage extends StatelessWidget { SailText.primary14('Total cost:'), const SizedBox(width: 10), SailText.primary14( - '${(viewModel.withdrawalAmount + viewModel.mainchainFee + viewModel.transactionFee)} SCO', + '${(viewModel.withdrawalAmount + viewModel.mainchainFee + viewModel.transactionFee)} SBTC', ), ], ),