liquid-funding/app/utils/conversions.js

5 lines
183 B
JavaScript

import web3 from 'Embark/web3'
export const toEther = amount => web3.utils.fromWei(amount, 'ether')
export const toWei = (amount, scale = 'ether') => web3.utils.toWei(amount, scale)