Skip to content
Draft
Show file tree
Hide file tree
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
24 changes: 24 additions & 0 deletions lib/pages/coin_control/coin_control_rules.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* This file is part of Stack Wallet.
*
* Copyright (c) 2023 Cypher Stack
* All Rights Reserved.
* The code is distributed under GPLv3 license, see LICENSE file for details.
*/

import '../../db/isar/main_db.dart';

CCFilter coinControlFilter({
required bool isSearching,
required bool showBlocked,
}) => isSearching
? CCFilter.all
: showBlocked
? CCFilter.frozen
: CCFilter.available;

bool canSelectCoinControlOutput({
required bool isManageMode,
required bool isBlocked,
required bool isConfirmed,
}) => isManageMode || (!isBlocked && isConfirmed);
Loading
Loading