-
Notifications
You must be signed in to change notification settings - Fork 11
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
The BTC Confirm screen does not show the estimated FIAT value and estimated time #445
Comments
We require the Keyguard to NOT make any requests to any third party URL. So the Keyguard itself cannot determine the fiat equivalent of the amount, nor the estimated time until confirmation. All data required for display need to be sent with the request. You need to display three new pieces of information
We could either add these values to the inputs and outputs, but a BTC transaction can have multiple of each, so the Keyguard would have to sum them up and process them separately. The duration, meanwhile, would be a separate object property, as it doesn't belong to inputs nor outputs. My suggestion is to add new fields to the keyguard/client/src/PublicRequest.ts Lines 282 to 284 in f17d97c
These fields should probably also be the |
I think I understood you correctly. I've added a temporary commit here, is that ok? I noticed that in Just one more question I would like to check this, the
|
I think your commit is going in the right direction, yes. Regarding the gauge that displays the transaction "speed": The further to the right the hand points, the faster the tx. So when |
Got it, thanks. Therefore I am going to work on this |
I'm not sure whether this is a good change. Also, not using external APIs has not historically been a strict requirement in the past. But based on this, for extra paranoia, we could think about checking the passed rate against coingecko as some form of validating the fiat rate. We could also proxy the coingecko api through one of our servers, in that case we can fetch the data without consent. |
Problem
As you can see in the screenshot, currently, this screen is showing something different to what is supposed
Solution
Before going to the code I want to make sure my solution is valid. Otherwise, we can discuss the right way to do it in this issue.
So right now, the interface we use for for this request is defined here: SignBtcTransactionRequestStandard. You can see an implementation of this interface I made for myself to understand it here
I propose changing this interface and update
BitcoinTransactionInput
adding the following keys:fiatAmount
,fiatCurrency
andestimatedDuration
. Probably, estimated duration is not needed as we can calculate that in the keyguard itself, is this correct?The text was updated successfully, but these errors were encountered: