From af26e0f55c79e05c05bf4307293b9bbf4ad67ae1 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Tue, 29 May 2018 13:35:30 +0200 Subject: [PATCH] Send: Advanced form tooltips --- .../wallet/account/send/AdvancedForm.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/js/components/wallet/account/send/AdvancedForm.js b/src/js/components/wallet/account/send/AdvancedForm.js index c46e4a2a..e8feb576 100644 --- a/src/js/components/wallet/account/send/AdvancedForm.js +++ b/src/js/components/wallet/account/send/AdvancedForm.js @@ -24,6 +24,7 @@ const AdvancedForm = (props: Props) => { currency, gasPrice, gasLimit, + recommendedGasPrice, calculatingGasLimit, nonce, data, @@ -50,16 +51,26 @@ const AdvancedForm = (props: Props) => { const nonceTooltip = (
- Nonce is.....
+ TODO
); + let gasLimitTooltipCurrency: string; + let gasLimitTooltipValue: string; + if (networkSymbol !== currency) { + gasLimitTooltipCurrency = 'tokens'; + gasLimitTooltipValue = network.defaultGasLimitTokens; + } else { + gasLimitTooltipCurrency = networkSymbol; + gasLimitTooltipValue = network.defaultGasLimit; + } + const gasLimitTooltip = (
Gas limit is the amount of gas to send with your transaction.
TX fee = gas price * gas limit & is paid to miners for including your TX in a block.
Increasing this number will not get your TX mined faster.
- Default value for sending ETH is { gasLimit } WEI. + Default value for sending { gasLimitTooltipCurrency } is { gasLimitTooltipValue }
); @@ -67,7 +78,7 @@ const AdvancedForm = (props: Props) => {
Gas Price is the amount you pay per unit of gas.
TX fee = gas price * gas limit & is paid to miners for including your TX in a block.
- Higher the gas price = faster transaction, but more expensive. Default is { gasPrice } GWEI.
+ Higher the gas price = faster transaction, but more expensive. Recommended is { recommendedGasPrice } GWEI.
Read more
);