desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Use new fee estimation endpoint

Open kyranjamie opened this issue 2 years ago • 4 comments

@fbwoolf's added this functionality to the extension wallet already.

We should use the same endpoint in the desktop wallet as well.

kyranjamie avatar Nov 22 '21 09:11 kyranjamie

We have this issue for updating the UX in general around the three estimates returned by the API: https://github.com/hirosystems/stacks-wallet/issues/923

Let's move that one into design since it will be the most comprehensive solution here, unless you're thinking we should also quickly patch the desktop wallet somehow with this endpoint?

markmhendrickson avatar Nov 22 '21 09:11 markmhendrickson

Uhh, yeah it isn't a biggie to just default to using the middle fee.

But your call. Maybe we wanna couple this work with custom fee inputs etc?

kyranjamie avatar Nov 22 '21 09:11 kyranjamie

Is the API not going to default to the middle fee on its end anyway? I have a faint recollection that was going to be the case. But if not, yea let's update on the client to use this new middle fee 👍

markmhendrickson avatar Nov 22 '21 09:11 markmhendrickson

The endpoint just returns all three estimates. The frontend has to decide what to default to.

fbwoolf avatar Nov 22 '21 13:11 fbwoolf