From 703fb67941718c5d554f6254a5e35cb03ca039e6 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 18 Nov 2022 10:48:36 +0800 Subject: [PATCH] add custom price step --- src/views/WalletAccountImportAddress.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/WalletAccountImportAddress.vue b/src/views/WalletAccountImportAddress.vue index 066180e8..9c373a14 100644 --- a/src/views/WalletAccountImportAddress.vue +++ b/src/views/WalletAccountImportAddress.vue @@ -464,6 +464,11 @@ export default { } }, initParamsForKeplr(chainid, chain) { + const gasPriceStep = chain.keplr_price_step || { + low: 0.01, + average: 0.025, + high: 0.03, + } return JSON.stringify({ chainId: chainid, chainName: chain.chain_name, @@ -495,19 +500,16 @@ export default { coinMinimalDenom: chain.assets[0].base, coinDecimals: chain.assets[0].exponent, coinGeckoId: chain.assets[0].coingecko_id || 'unknown', + gasPriceStep, }, ], + gasPriceStep, stakeCurrency: { coinDenom: chain.assets[0].symbol, coinMinimalDenom: chain.assets[0].base, coinDecimals: chain.assets[0].exponent, coinGeckoId: chain.assets[0].coingecko_id || 'unknown', }, - gasPriceStep: { - low: 0.01, - average: 0.025, - high: 0.03, - }, features: chain.keplr_features || [], }, null, '\t') },