package com.samourai.wallet.bip47;

import com.samourai.wallet.SamouraiWallet;

import java.math.BigInteger;

public class SendNotifTxFactory	{

    public static final BigInteger _bNotifTxValue = SamouraiWallet.bDust;
    public static final BigInteger _bSWFee = SamouraiWallet.bFee;
//    public static final BigInteger _bSWCeilingFee = BigInteger.valueOf(50000L);

    public static final String SAMOURAI_NOTIF_TX_FEE_ADDRESS = "bc1qncfysagz0072a894kvzyxqwpvj5ckfj5kctmtk";
    public static final String TESTNET_SAMOURAI_NOTIF_TX_FEE_ADDRESS = "tb1qh287jqsh6mkpqmd8euumyfam00fkr78qhrdnde";

//    public static final double _dSWFeeUSD = 0.5;

    private SendNotifTxFactory () { ; }

}

@@ -29,16 +29,42 @@
 bip47;%0A%0A
+import android.util.Log;%0A%0A
 import c
@@ -164,9 +164,9 @@
 tory
-%09
+ 
 %7B%0A%0A 
@@ -391,35 +391,71 @@
 );%0A%0A    
-public static final
+static SendNotifTxFactory _instance = null;%0A%0A    public
  String 
@@ -543,29 +543,16 @@
  public 
-static final 
 String T
@@ -723,17 +723,498 @@
 tory
- () %7B ; %7D%0A
+() %7B%0A    %7D%0A%0A%0A    public static SendNotifTxFactory getInstance() %7B%0A        if (_instance == null) %7B%0A            _instance = new SendNotifTxFactory();%0A        %7D%0A        return _instance;%0A    %7D%0A%0A    public void setAddress(String address) %7B%0A        if(SamouraiWallet.getInstance().isTestNet())%7B%0A            TESTNET_SAMOURAI_NOTIF_TX_FEE_ADDRESS = address;%0A        %7Delse %7B%0A            SAMOURAI_NOTIF_TX_FEE_ADDRESS = address;%0A        %7D%0A        Log.i(%22TAG%22,%22address BIP47 %22.concat(address));%0A    %7D
 %0A%7D%0A

Allow BIP47 custom fee address option