add custom price step
This commit is contained in:
parent
fe2efc3c4d
commit
703fb67941
@ -464,6 +464,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
initParamsForKeplr(chainid, chain) {
|
initParamsForKeplr(chainid, chain) {
|
||||||
|
const gasPriceStep = chain.keplr_price_step || {
|
||||||
|
low: 0.01,
|
||||||
|
average: 0.025,
|
||||||
|
high: 0.03,
|
||||||
|
}
|
||||||
return JSON.stringify({
|
return JSON.stringify({
|
||||||
chainId: chainid,
|
chainId: chainid,
|
||||||
chainName: chain.chain_name,
|
chainName: chain.chain_name,
|
||||||
@ -495,19 +500,16 @@ export default {
|
|||||||
coinMinimalDenom: chain.assets[0].base,
|
coinMinimalDenom: chain.assets[0].base,
|
||||||
coinDecimals: chain.assets[0].exponent,
|
coinDecimals: chain.assets[0].exponent,
|
||||||
coinGeckoId: chain.assets[0].coingecko_id || 'unknown',
|
coinGeckoId: chain.assets[0].coingecko_id || 'unknown',
|
||||||
|
gasPriceStep,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
gasPriceStep,
|
||||||
stakeCurrency: {
|
stakeCurrency: {
|
||||||
coinDenom: chain.assets[0].symbol,
|
coinDenom: chain.assets[0].symbol,
|
||||||
coinMinimalDenom: chain.assets[0].base,
|
coinMinimalDenom: chain.assets[0].base,
|
||||||
coinDecimals: chain.assets[0].exponent,
|
coinDecimals: chain.assets[0].exponent,
|
||||||
coinGeckoId: chain.assets[0].coingecko_id || 'unknown',
|
coinGeckoId: chain.assets[0].coingecko_id || 'unknown',
|
||||||
},
|
},
|
||||||
gasPriceStep: {
|
|
||||||
low: 0.01,
|
|
||||||
average: 0.025,
|
|
||||||
high: 0.03,
|
|
||||||
},
|
|
||||||
features: chain.keplr_features || [],
|
features: chain.keplr_features || [],
|
||||||
}, null, '\t')
|
}, null, '\t')
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user