Skip to content

Commit

Permalink
chore: hardcode new fees for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nick134-bit committed Oct 25, 2023
1 parent b8f86b3 commit bc89793
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions constants/signerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ const getGasPrices = (chainName:string, chain:Chain) => {
const activeChains = [...ACTIVE_NETWORKS_WALLET_NAMES.mainnet, ...ACTIVE_NETWORKS_WALLET_NAMES.testnet]
if (activeChains.includes(chainName)) {
const [feeTokens] = chain.fees.fee_tokens;
const price = feeTokens
let price = feeTokens
? feeTokens.average_gas_price || feeTokens.low_gas_price || feeTokens.fixed_min_gas_price || 0
: 0;
// Hardcoded until registry is updated
if (chainName === 'migaloo') {
price = 2;
}
return {
gasPrice: GasPrice.fromString(String(price) + chain.fees.fee_tokens[0].denom),
}
}
return {}
}
export const signerOptions = {
signingCosmwasm: (chain: Chain) => getGasPrices(chain.chain_name, chain),
Expand Down

0 comments on commit bc89793

Please sign in to comment.