@@ -116,6 +116,21 @@ public class Constants
116116 /// </summary>
117117 public static int SWEEP_CONF_TARGET = 6 ;
118118
119+ /// <summary>
120+ /// Maximum miner fees in satoshis for automatic swap operations
121+ /// </summary>
122+ public static long SWAP_MAX_MINER_FEES_SATS = 15000 ;
123+
124+ /// <summary>
125+ /// Maximum service fees as a percentage for automatic swap operations
126+ /// </summary>
127+ public static decimal SWAP_MAX_SERVICE_FEES_PERCENT = 0.1m ;
128+
129+ /// <summary>
130+ /// Prepay amount in satoshis for automatic swap operations
131+ /// </summary>
132+ public static long SWAP_PREPAY_AMOUNT_SATS = 1337 ;
133+
119134 public const string IsFrozenTag = "frozen" ;
120135 public const string IsManuallyFrozenTag = "manually_frozen" ;
121136
@@ -298,6 +313,16 @@ static Constants()
298313 var scanBatchSize = Environment . GetEnvironmentVariable ( "SCAN_BATCH_SIZE" ) ;
299314 SCAN_BATCH_SIZE = scanBatchSize != null ? int . Parse ( scanBatchSize ) : SCAN_BATCH_SIZE ;
300315
316+ // Swap configuration
317+ var swapMaxMinerFees = Environment . GetEnvironmentVariable ( "SWAP_MAX_MINER_FEES_SATS" ) ;
318+ SWAP_MAX_MINER_FEES_SATS = swapMaxMinerFees != null ? long . Parse ( swapMaxMinerFees ) : SWAP_MAX_MINER_FEES_SATS ;
319+
320+ var swapMaxServiceFeesPercent = Environment . GetEnvironmentVariable ( "SWAP_MAX_SERVICE_FEES_PERCENT" ) ;
321+ SWAP_MAX_SERVICE_FEES_PERCENT = swapMaxServiceFeesPercent != null ? decimal . Parse ( swapMaxServiceFeesPercent , NumberStyles . AllowDecimalPoint , CultureInfo . InvariantCulture ) : SWAP_MAX_SERVICE_FEES_PERCENT ;
322+
323+ var swapPrepayAmount = Environment . GetEnvironmentVariable ( "SWAP_PREPAY_AMOUNT_SATS" ) ;
324+ SWAP_PREPAY_AMOUNT_SATS = swapPrepayAmount != null ? long . Parse ( swapPrepayAmount ) : SWAP_PREPAY_AMOUNT_SATS ;
325+
301326 // DB Initialization
302327 ALICE_PUBKEY = Environment . GetEnvironmentVariable ( "ALICE_PUBKEY" ) ?? ALICE_PUBKEY ;
303328 ALICE_HOST = Environment . GetEnvironmentVariable ( "ALICE_HOST" ) ?? ALICE_HOST ;
0 commit comments