From f51cf2e395772a630ffd5d70a04f2dfbec274ac2 Mon Sep 17 00:00:00 2001
From: julian <julian@cypherstack.com>
Date: Wed, 26 Jul 2023 17:15:11 -0600
Subject: [PATCH 1/2] extra temp check on firo

---
 lib/services/coins/firo/firo_wallet.dart | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/services/coins/firo/firo_wallet.dart b/lib/services/coins/firo/firo_wallet.dart
index 079b96ff4..573992318 100644
--- a/lib/services/coins/firo/firo_wallet.dart
+++ b/lib/services/coins/firo/firo_wallet.dart
@@ -1169,6 +1169,11 @@ class FiroWallet extends CoinServiceAPI
     required Amount amount,
     Map<String, dynamic>? args,
   }) async {
+    if (amount.raw > BigInt.from(MINT_LIMIT)) {
+      throw Exception(
+          "Lelantus sends of more than 5001 are currently disabled");
+    }
+
     try {
       // check for send all
       bool isSendAll = false;
@@ -2510,6 +2515,11 @@ class FiroWallet extends CoinServiceAPI
   }
 
   Future<List<Map<String, dynamic>>> createMintsFromAmount(int total) async {
+    if (total > MINT_LIMIT) {
+      throw Exception(
+          "Lelantus mints of more than 5001 are currently disabled");
+    }
+
     int tmpTotal = total;
     int counter = 0;
     final lastUsedIndex = await db.getHighestUsedMintIndex(walletId: walletId);

From 703863cab83a2cc7ae784ec0f726035c5f711cf3 Mon Sep 17 00:00:00 2001
From: julian <julian@cypherstack.com>
Date: Wed, 26 Jul 2023 17:21:36 -0600
Subject: [PATCH 2/2] reorder firo balance sheet on mobile

---
 .../wallet_balance_toggle_sheet.dart          | 52 ++++++++++---------
 1 file changed, 27 insertions(+), 25 deletions(-)

diff --git a/lib/pages/wallet_view/sub_widgets/wallet_balance_toggle_sheet.dart b/lib/pages/wallet_view/sub_widgets/wallet_balance_toggle_sheet.dart
index 4b2ee7a3b..029cd7aa3 100644
--- a/lib/pages/wallet_view/sub_widgets/wallet_balance_toggle_sheet.dart
+++ b/lib/pages/wallet_view/sub_widgets/wallet_balance_toggle_sheet.dart
@@ -121,7 +121,8 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
                 height: 24,
               ),
               BalanceSelector(
-                title: "Available balance",
+                title:
+                    "Available${balanceSecondary != null ? " public" : ""} balance",
                 coin: coin,
                 balance: balance.spendable,
                 onPressed: () {
@@ -141,6 +142,31 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
                 value: _BalanceType.available,
                 groupValue: _bal,
               ),
+              const SizedBox(
+                height: 12,
+              ),
+              BalanceSelector(
+                title:
+                    "Full${balanceSecondary != null ? " public" : ""} balance",
+                coin: coin,
+                balance: balance.total,
+                onPressed: () {
+                  ref.read(walletBalanceToggleStateProvider.state).state =
+                      WalletBalanceToggleState.full;
+                  ref.read(publicPrivateBalanceStateProvider.state).state =
+                      "Public";
+                  Navigator.of(context).pop();
+                },
+                onChanged: (_) {
+                  ref.read(walletBalanceToggleStateProvider.state).state =
+                      WalletBalanceToggleState.full;
+                  ref.read(publicPrivateBalanceStateProvider.state).state =
+                      "Public";
+                  Navigator.of(context).pop();
+                },
+                value: _BalanceType.full,
+                groupValue: _bal,
+              ),
               if (balanceSecondary != null)
                 const SizedBox(
                   height: 12,
@@ -167,30 +193,6 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
                   value: _BalanceType.privateAvailable,
                   groupValue: _bal,
                 ),
-              const SizedBox(
-                height: 12,
-              ),
-              BalanceSelector(
-                title: "Full balance",
-                coin: coin,
-                balance: balance.total,
-                onPressed: () {
-                  ref.read(walletBalanceToggleStateProvider.state).state =
-                      WalletBalanceToggleState.full;
-                  ref.read(publicPrivateBalanceStateProvider.state).state =
-                      "Public";
-                  Navigator.of(context).pop();
-                },
-                onChanged: (_) {
-                  ref.read(walletBalanceToggleStateProvider.state).state =
-                      WalletBalanceToggleState.full;
-                  ref.read(publicPrivateBalanceStateProvider.state).state =
-                      "Public";
-                  Navigator.of(context).pop();
-                },
-                value: _BalanceType.full,
-                groupValue: _bal,
-              ),
               if (balanceSecondary != null)
                 const SizedBox(
                   height: 12,