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

[UX] Miner fee update causes send amount to change on /createswap #347

Closed
armurbalda opened this issue Jun 5, 2023 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request P1 question Further information is requested

Comments

@armurbalda
Copy link
Contributor

User tried to spend entire UTXO thus, as an example, precisely calculated 0.06626115 as send amount. But after webapp called /createswap (moved to second page) Boltz suddenly wanted 0.06626285 BTC. A difference of 170 sats. Reason: miner fees updated.

How can we avoid this? "Freezing" miner fees for x minutes is actually not trivial since Boltz would then need to remember which webapp it told what etc. Probably only realistic to let webapp transmit miner fee as a parameter, and boltz-backend accepting it as long as it's within certain limits. Basically #326

@armurbalda armurbalda added enhancement New feature or request question Further information is requested P1 labels Jun 5, 2023
@armurbalda
Copy link
Contributor Author

As just discussed with @michael1011 , the realistic midterm solution is to increase miner fee update intervals to sth like 5 mins, lowering chance for user to hit the moment of change and for webapp to implement a browser notification Network fee was updated based on network situation, please confirm new amounts and continue with swap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1 question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants