From 99a36f158731fad192f7c30bc59ba64dfd671479 Mon Sep 17 00:00:00 2001 From: julian <julian@cypherstack.com> Date: Tue, 25 Jul 2023 09:03:26 -0600 Subject: [PATCH] fix mint limit constant --- lib/services/coins/firo/firo_wallet.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/services/coins/firo/firo_wallet.dart b/lib/services/coins/firo/firo_wallet.dart index 331b5b519..b02816497 100644 --- a/lib/services/coins/firo/firo_wallet.dart +++ b/lib/services/coins/firo/firo_wallet.dart @@ -58,8 +58,8 @@ import 'package:uuid/uuid.dart'; const DUST_LIMIT = 1000; const MINIMUM_CONFIRMATIONS = 1; -const MINT_LIMIT = 100100000000; -const int LELANTUS_VALUE_SPEND_LIMIT_PER_TRANSACTION = 5001 * 100000000; +const MINT_LIMIT = 5001 * 100000000; +const MINT_LIMIT_TESTNET = 1001 * 100000000; const JMINT_INDEX = 5; const MINT_INDEX = 2; @@ -2628,7 +2628,8 @@ class FiroWallet extends CoinServiceAPI } if (!isUsedMintTag) { - final mintValue = min(tmpTotal, MINT_LIMIT); + final mintValue = min(tmpTotal, + (coin == Coin.firoTestNet ? MINT_LIMIT_TESTNET : MINT_LIMIT)); final mint = await _getMintHex( mintValue, index, @@ -2639,7 +2640,8 @@ class FiroWallet extends CoinServiceAPI "index": index, "publicCoin": "", }); - tmpTotal = tmpTotal - MINT_LIMIT; + tmpTotal = tmpTotal - + (coin == Coin.firoTestNet ? MINT_LIMIT_TESTNET : MINT_LIMIT); } counter++;