diff --git a/src/connectors/kujira/kujira.config.ts b/src/connectors/kujira/kujira.config.ts index ace4fedf41..be03d9c3ad 100644 --- a/src/connectors/kujira/kujira.config.ts +++ b/src/connectors/kujira/kujira.config.ts @@ -28,6 +28,7 @@ export namespace KujiraConfig { accountNumber: configManager.get('kujira.accountNumber') || 0, nativeToken: 'KUJI', gasPrice: configManager.get('kujira.gasPrice') ? BigNumber(configManager.get('kujira.gasPrice')) : null, + fallbackGasPrice: BigNumber(0.0034), gasPriceSuffix: 'ukuji', gasLimitEstimate: BigNumber( configManager.get('kujira.gasLimitEstimate') || 0.009147 diff --git a/src/connectors/kujira/kujira.ts b/src/connectors/kujira/kujira.ts index fc2dc10fda..f6bc32ac8a 100644 --- a/src/connectors/kujira/kujira.ts +++ b/src/connectors/kujira/kujira.ts @@ -329,7 +329,12 @@ export class Kujira { this.kujiraNetworkNativeFees = getNotNullOrThrowError( this.kujiraNetworkInfo['feeCurrencies'].find(it => it.coinDenom == config.nativeToken) ); - this.kujiraNetworkNativeGasPrice = config.gasPrice || BigNumber(getNotNullOrThrowError(this.kujiraNetworkNativeFees.gasPriceStep?.low)); + + try { + this.kujiraNetworkNativeGasPrice = config.gasPrice || BigNumber(getNotNullOrThrowError(this.kujiraNetworkNativeFees.gasPriceStep?.low)); + } catch (exception) { + this.kujiraNetworkNativeGasPrice = config.fallbackGasPrice; + } this.accounts = IMap().asMutable(); }