Skip to content
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

Max total fee #1488

Merged
merged 5 commits into from
Oct 20, 2024
Merged

Max total fee #1488

merged 5 commits into from
Oct 20, 2024

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Oct 18, 2024

Description

This adds max base fee as a new autowithdrawal setting. This can be used to make small withdrawals possible without allowing a higher max fee rate for big withdrawals.

This setting is set to 0 for users which have autowithdrawals enabled to keep existing fee settings and not suddenly allow higher fees without their interaction.

close #1383 based on #1487

Screenshots

2024-10-18-190904_1920x1200_scrot

Additional Context

  • Does subtitle of network fees make sense?
  • Does hint for max base fee make sense?
  • Can we expect or do we want stackers to understand the difference between max fee rate, max base fee and pathfinding?

Checklist

Are your changes backwards compatible? Please answer below:

yes, new db column added but is nullable

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

6. I checked that max fee is correctly calculated during autowithdrawal.

For frontend changes: Tested on mobile? Please answer below:

yes

Did you introduce any new environment variables? If so, call them out explicitly here:

no

@ekzyis ekzyis added feature new product features that weren't there before wallets labels Oct 18, 2024
Copy link
Member

@huumn huumn left a comment

Choose a reason for hiding this comment

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

It looks like you mean "max absolute fee" rather than "max base fee."

I think what we want is "max fee relative" and "max fee absolute" but I'm not sure that's pleb friendly.

@huumn
Copy link
Member

huumn commented Oct 18, 2024

Maybe "max fee rate" and "max fee total"

@huumn
Copy link
Member

huumn commented Oct 18, 2024

I think we also want the subtitle to say "we'll use whichever is higher" given the withdrawn amount.

@ekzyis ekzyis changed the title Max base fee Max total fee Oct 19, 2024
@ekzyis
Copy link
Member Author

ekzyis commented Oct 19, 2024

Updated text. Now looks like this:

2024-10-19-224942_1920x1200_scrot

Copy link
Member

@huumn huumn left a comment

Choose a reason for hiding this comment

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

This probably needs to account for #1499?

@ekzyis
Copy link
Member Author

ekzyis commented Oct 20, 2024

This probably needs to account for #1499?

Oh, I already accounted for the new autoWithdrawMaxFeeTotal in #1499 but not for autoWithdrawThreshold. Added now!

@huumn huumn merged commit 46b2a57 into master Oct 20, 2024
6 checks passed
@huumn huumn deleted the max-base-fee branch October 20, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new product features that weren't there before wallets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to set max base fee for withdrawals
2 participants