import BigNumber from 'bignumber.js' ; export const getBalanceNumber = ( balance , decimals = 18 ) => { const displayBalance = balance . dividedBy ( new BigNumber ( 10 ) . pow ( decimals ) ) ; return displayBalance . toNumber ( ) ; } ; export const getDisplayBalance = ( balance , decimals = 18 ) => { const displayBalance = balance . dividedBy ( new BigNumber ( 10 ) . pow ( decimals ) ) ; return displayBalance . toPrecision ( 5 ) ; } ; export const getFullDisplayBalance = ( balance , decimals = 18 ) => { return balance . dividedBy ( new BigNumber ( 10 ) . pow ( decimals ) ) . toFixed ( ) ; } ;