-
Notifications
You must be signed in to change notification settings - Fork 0
Send Custom Speed #281
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
Send Custom Speed #281
Conversation
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeCustomScreen.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeRateScreen.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeRateScreen.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeRateScreen.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeRateScreen.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeRateScreen.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeRateScreen.kt
Fixed
Show fixed
Hide fixed
app/src/main/java/to/bitkit/ui/screens/wallets/send/SendFeeRateScreen.kt
Fixed
Show fixed
Hide fixed
|
The issue where we are seeing different fees is coming from
We get different return value each time we call The underlying issue seems to be related to which UTXOs are selected. If we pass the same list of UTXOs we do get the same fee returned each time. If we don't pass UTXOs, it's probably almost always estimating for a different number of UTXOs. I noticed the same issue when calling This makes implementing a reliable fee estimation system quite difficult in the native app, bloating the codebase with hacks to manage state, all for not having to re-estimate fees unless absolutely necessarily. Even after all the patch fixing, I still encounter an issue which I can't properly solve:
cc @coreyphillips, would appreciate your input 🙏🏻 |
jvsena42
left a comment
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.
Tested in a Mi A2
|
Hey @ovitrif! I may need to consider adding a few comments or updating the documents around fee estimation. The randomness around fees when passing Otherwise, any time we adjust the desired fee-rate, value and/or UTXO set we'll need to re-run the fee-estimation method since adjusting these values in any way may result in a change to the resulting fee that the user will need to pay. |
Thank you @coreyphillips 🙏🏻 Makes sense to me, would've helped me to know this in advance so I could've avoided the trial-and-error approach I had to take to optimise this for a bug-free UI, by ensuring a more-deterministic fee calculation. Updating the documentation + comments in code if needed (especially if we want to open a PR with upstream) is a good solution IMHO 🙏🏻 cc. @pwltr - knowing this in advance will help get it right from 1st try on iOS side 🙏🏻 :
|

Related: #49
Related: #222
Design: Figma v57 Send - Speed
This PR adds UI and logic to enable selecting a preconfigured transaction speed (ie. fee rate) when sending onchain payments.
Setting a custom fee value in the Send flow is for the next PR. Use
settings > general > transaction speed > customto test for now.Description
Preview
speedSelect.mp4
QA Notes
Test - Send Onchain