liquid-funding/app/utils/conversions.js

5 lines
183 B
JavaScript
Raw Normal View History

2018-12-03 15:29:14 +00:00
import web3 from 'Embark/web3'
export const toEther = amount => web3.utils.fromWei(amount, 'ether')
2018-12-04 19:39:45 +00:00
export const toWei = (amount, scale = 'ether') => web3.utils.toWei(amount, scale)