From bd9ea319a87e96a0c4d6de6b77111c6bc9d68a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kulpa?= Date: Thu, 9 Feb 2023 10:29:12 +0100 Subject: [PATCH] Setup proper url for inflation C4E chain. --- src/libs/fetch.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index 3c8d2b26..66f40733 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -172,6 +172,9 @@ export default class ChainFetch { if (this.config.chain_name === 'echelon') { return this.get('/echelon/inflation/v1/inflation_rate').then(data => Number(data.inflation_rate / 100 || 0)) } + if (this.config.chain_name === 'chain4energy') { + return this.get('/c4e/minter/v1beta1/inflation').then(data => Number(data.inflation)) + } if (this.isModuleLoaded('minting')) { return this.get('/cosmos/mint/v1beta1/inflation').then(data => Number(commonProcess(data.inflation))) }