diff --git a/src/lang/locales/en.json b/src/lang/locales/en.json
index 3a2181fa..a0c032aa 100644
--- a/src/lang/locales/en.json
+++ b/src/lang/locales/en.json
@@ -4,13 +4,13 @@
},
"cosmos": "Cosmos Hub",
"kava": "Kava",
- "akash": "Akash Decloud",
- "iris": "IRIS Hub",
- "crypto": "Crypto.org",
+ "akash-network": "Akash Decloud",
+ "iris-network": "IRIS Hub",
+ "crypto-com-chain": "Crypto.org",
"osmosis": "Osmosis",
"okexchain": "OKEX Chain",
- "band": "Band Protocal",
- "terra": "Terra",
+ "band-protocol": "Band Protocol",
+ "terra-luna": "Terra",
"persistence": "Persistence",
"regen": "Regen Network",
"secret": "Secret Network",
diff --git a/src/libs/fetch.js b/src/libs/fetch.js
index 9255ce42..65381495 100644
--- a/src/libs/fetch.js
+++ b/src/libs/fetch.js
@@ -6,7 +6,7 @@ import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx'
import { toBase64 } from '@cosmjs/encoding'
import {
Proposal, ProposalTally, Proposer, StakingPool, Votes, Deposit,
- Validator, StakingParameters, Block, ValidatorDistribution, StakingDelegation, WrapStdTx,
+ Validator, StakingParameters, Block, ValidatorDistribution, StakingDelegation, WrapStdTx, getUserCurrency,
} from './data'
function commonProcess(res) {
@@ -318,6 +318,12 @@ const chainAPI = class ChainFetch {
return this.get('/cosmos/liquidity/v1beta1/pools').then(data => commonProcess(data))
}
+ async getMarketChart(days = 14, coin = null) {
+ const conf = this.getSelectedConfig()
+ const currency = getUserCurrency()
+ return ChainFetch.fetch(' https://api.coingecko.com', `/api/v3/coins/${coin || conf.chain_name}/market_chart?vs_currency=${currency}&days=${days}`)
+ }
+
// CoinMarketCap
static async fetchCoinMarketCap(url) {
const host = 'https://price.ping.pub'
diff --git a/src/store/chains/akash.json b/src/store/chains/akash.json
index 9d6b39b7..72652a60 100644
--- a/src/store/chains/akash.json
+++ b/src/store/chains/akash.json
@@ -1,5 +1,5 @@
{
- "chain_name": "akash",
+ "chain_name": "akash-network",
"api": "https://akash.api.ping.pub",
"sdk_version": "0.41.3",
"addr_prefix": "akash",
diff --git a/src/store/chains/band.json b/src/store/chains/band.json
index e0d9585d..e52bd8b9 100644
--- a/src/store/chains/band.json
+++ b/src/store/chains/band.json
@@ -1,5 +1,5 @@
{
- "chain_name": "band",
+ "chain_name": "band-protocol",
"api": "https://laozi1.bandchain.org/api",
"addr_prefix": "band",
"logo": "https://dl.airtable.com/.attachments/472ae99a508e32b4439b416beddd4eb9/c5166f62/band-symbol-blue-bg.75a3ad91.svg",
diff --git a/src/store/chains/crypto.json b/src/store/chains/crypto.json
index 852b28cb..d2f0fd76 100644
--- a/src/store/chains/crypto.json
+++ b/src/store/chains/crypto.json
@@ -1,6 +1,6 @@
{
- "chain_name": "crypto",
+ "chain_name": "crypto-com-chain",
"api": "https://mainnet.crypto.org:1317",
"sdk_version": "0.39.2",
"addr_prefix": "cro",
diff --git a/src/store/chains/iris.json b/src/store/chains/iris.json
index 7491192b..e2b9fc4a 100644
--- a/src/store/chains/iris.json
+++ b/src/store/chains/iris.json
@@ -1,5 +1,5 @@
{
- "chain_name": "iris",
+ "chain_name": "iris-network",
"api": "https://iris.api.ping.pub",
"sdk_version": "0.42.4",
"addr_prefix": "iaa",
diff --git a/src/store/chains/terra.json b/src/store/chains/terra.json
index 6c2b7d43..14bebf59 100644
--- a/src/store/chains/terra.json
+++ b/src/store/chains/terra.json
@@ -1,5 +1,5 @@
{
- "chain_name": "terra",
+ "chain_name": "terra-luna",
"api": "https://fcd.terra.dev",
"sdk_version": "0.39.2",
"addr_prefix": "terra",
diff --git a/src/views/Summary.vue b/src/views/Summary.vue
index 17d02477..39787501 100644
--- a/src/views/Summary.vue
+++ b/src/views/Summary.vue
@@ -10,7 +10,20 @@
-
+
+
+
+
+
+
+
+
@@ -47,26 +60,32 @@