Skip to content

Commit

Permalink
Alignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SamvelRaja Sakthivel authored and SamvelRaja Sakthivel committed Sep 2, 2023
1 parent f48423e commit 6a78a59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cosmos-snap-provider/src/helper/gas.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import BN from 'bignumber.js';
const defaultDecimals = 6;

export const getGasPriceForChainName = async (chainName: string, gasLevel:string = 'average') => {
const gasPriceRegistry: any = await fetch('https://assets.leapwallet.io/cosmos-registry/v1/gas/gas-prices.json');
Expand All @@ -11,8 +12,6 @@ export const getGasPriceForChainName = async (chainName: string, gasLevel:string
return gasPrices?.[chainName]?.[gasLevel]
}


const defaultDecimals = 6;
export function toSmall(quantity: string, decimals: number = defaultDecimals): string {
return new BN(quantity).times(Math.pow(10, decimals)).toFixed().toString();
}

0 comments on commit 6a78a59

Please sign in to comment.