You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit allows the user to set their own value for the maximum
allowed fees to total output amount ratio that is used by the wallet
when funding PSBTs.
// defaultPsbtMaxFeeRatio is the default maximum for fees to total
148
+
// output amount ratio to use when funding PSBTs.
149
+
defaultPsbtMaxFeeRatio=0.75
146
150
)
147
151
148
152
var (
@@ -276,6 +280,17 @@ type LndConfig struct {
276
280
RPCTimeout time.Duration`long:"rpctimeout" description:"The timeout to use for RPC requests to lnd; a sufficiently long duration should be chosen to avoid issues with slow responses. Valid time units are {s, m, h}."`
277
281
}
278
282
283
+
// WalletConfig is the config that contains wallet related configurations.
284
+
typeWalletConfigstruct {
285
+
// PsbtMaxFeeRatio is the maximum fees to total output amount ratio to
286
+
// use when funding PSBTs for asset transfers. Since taproot assets can
287
+
// be anchored to outpoints that may carry relatively small bitcoin
288
+
// amounts it is useful to pick a high value for this argument as in
289
+
// high fee environments the total fees paid may outweight the anchor
290
+
// amount. The allowed values for this argument range from 0.00 to 1.00.
291
+
PsbtMaxFeeRatiofloat64`long:"psbt-max-fee-ratio" description:"The maximum fees to total output amount ratio to use when funding PSBTs for asset transfers. Value must be between 0.00 and 1.00"`
292
+
}
293
+
279
294
// UniverseConfig is the config that houses any Universe related config
0 commit comments