-
Notifications
You must be signed in to change notification settings - Fork 134
tapd: bump maxFeeRatio for funded psbts #1545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 17555793621Details
💛 - Coveralls |
99bb86a
to
e9d48fa
Compare
e9d48fa
to
2028e61
Compare
Made the value configurable by the user via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
@ffranr: review reminder |
I think after this is rebased, with the comments addressed, we can land it. |
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.
68cba5f
to
74a8303
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question re: bounds checking, otherwise LGTM.
// use when funding PSBTs for asset transfers. Since taproot assets can | ||
// be anchored to outpoints that may carry relatively small bitcoin | ||
// amounts it is useful to pick a high value for this argument as in | ||
// high fee environments the total fees paid may outweight the anchor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: s/outweight/outweigh
walletAnchor := lndservices.NewLndRpcWalletAnchor(lndServices) | ||
walletAnchor := lndservices.NewLndRpcWalletAnchor( | ||
lndServices, | ||
lndservices.WithPsbtMaxFeeRatio(cfg.Wallet.PsbtMaxFeeRatio), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing this eventually gets checked by lnd, but worth doing any bounds checking on the argument before we get here, possibly in tapcfg.ValidateConfig?
Description
Allows the user to define the maximum ratio of fees to total output amounts that is used when funding a PSBT with our wallet. The default value is configured to be
0.75
.