@@ -25,6 +25,10 @@ class _ActivateWalletWidgetState extends ConsumerState<ActivateWalletWidget> {
2525 int tftPrice = 0 ;
2626 bool isLoadingPrice = true ;
2727
28+ // Activation Fees in XLM
29+ static const int activationFee = 3 ;
30+
31+
2832 @override
2933 void initState () {
3034 super .initState ();
@@ -80,7 +84,7 @@ class _ActivateWalletWidgetState extends ConsumerState<ActivateWalletWidget> {
8084 });
8185 return false ;
8286 }
83- if (double .parse (_selectedWallet! .stellarBalance) < (tftPrice * 3 )) {
87+ if (double .parse (_selectedWallet! .stellarBalance) < (tftPrice * activationFee )) {
8488 setState (() {
8589 walletError = 'Selected wallet does not have enough TFTs' ;
8690 });
@@ -122,7 +126,7 @@ class _ActivateWalletWidgetState extends ConsumerState<ActivateWalletWidget> {
122126 await StellarService .transfer (
123127 _selectedWallet! .stellarSecret,
124128 Globals ().activationServiceAddress,
125- (3 * tftPrice).toString (),
129+ (activationFee * tftPrice).toString (),
126130 );
127131 } catch (transferError) {
128132 logger.e ('Transfer error : $transferError ' );
@@ -252,7 +256,7 @@ class _ActivateWalletWidgetState extends ConsumerState<ActivateWalletWidget> {
252256 ],
253257 )
254258 : Text (
255- 'This will consume ${tftPrice * 3 } TFTs from the selected wallet.' ,
259+ 'This will consume ${tftPrice * activationFee } TFTs from the selected wallet.' ,
256260 style: Theme .of (context)
257261 .textTheme
258262 .bodySmall!
0 commit comments