import { utils } from 'ethers' ; import UniLoginSdk from '@unilogin/sdk' ; export const formatValue = ( sdk , amount , currency ) => utils . parseUnits ( amount , sdk . tokensDetailsStore . getTokenBy ( 'symbol' , currency ) . decimals ) . toString ( ) ;