Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

GeorgeTsagk
Copy link
Member

@GeorgeTsagk GeorgeTsagk commented May 16, 2025

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.

@GeorgeTsagk GeorgeTsagk self-assigned this May 16, 2025
@coveralls
Copy link

coveralls commented May 16, 2025

Pull Request Test Coverage Report for Build 16725425254

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 27 of 27 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on bump-psbt-maxfeeratio at 56.483%

Totals Coverage Status
Change from base Build 16720398248: 56.5%
Covered Lines: 59227
Relevant Lines: 104858

💛 - Coveralls

@GeorgeTsagk GeorgeTsagk force-pushed the bump-psbt-maxfeeratio branch from 99bb86a to e9d48fa Compare May 16, 2025 14:46
@levmi levmi moved this from 🆕 New to 🏗 In progress in Taproot-Assets Project Board May 19, 2025
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.
@GeorgeTsagk GeorgeTsagk force-pushed the bump-psbt-maxfeeratio branch from e9d48fa to 2028e61 Compare August 4, 2025 13:59
@GeorgeTsagk
Copy link
Member Author

Made the value configurable by the user via wallet.psbt-max-fee-ratio, more on the rationale here

@levmi levmi moved this from 🏗 In progress to 👀 In review in Taproot-Assets Project Board Aug 4, 2025
@GeorgeTsagk GeorgeTsagk requested review from guggero and ffranr August 5, 2025 13:25
Copy link
Contributor

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉


// defaultPsbtMaxFeeRatio is the default maximum for fees to total
// output amount ratio to use when funding PSBTs.
defaultPsbtMaxFeeRatio = 0.75
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we export the lndservices.defaultPsbtMaxFeeRation and use that here? Or the other way around, depending on what works without creating a circular package dependency.

than the anchor amount itself, which is helpful in high fee environment where
pulling in extra inputs might not be preferred.It is exposed via the flag
`wallet.psbt-max-fee-ratio` and is introduced by
[PR #1545](https://github.com/lightninglabs/taproot-assets/pull/1545)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: missing final punctuation. And missing a space between "preferred." and "It".

@lightninglabs-deploy
Copy link

@ffranr: review reminder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

4 participants