Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi: rename SOC to SBTC #6

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions lib/pages/tabs/withdrawal_tab_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand All @@ -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(
Expand All @@ -53,7 +49,7 @@ class WithdrawalTabPage extends StatelessWidget {
child: TextFormField(
decoration: const InputDecoration(
labelText: 'Withdrawal',
suffixText: 'SCO',
suffixText: 'SBTC',
),
inputFormatters: [
// digits plus dot
Expand All @@ -72,7 +68,7 @@ class WithdrawalTabPage extends StatelessWidget {
initialValue: viewModel.mainchainFee.toString(),
decoration: const InputDecoration(
labelText: 'Mainchain Fee',
suffixText: 'SCO',
suffixText: 'SBTC',
),
),
),
Expand All @@ -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),
Expand All @@ -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',
),
],
),
Expand Down