Ride-The-Lightning-RTL/common.js
ShahanaFarooqui ffac7fabed Payments Incomplete
Payments Incomplete
2018-10-09 20:08:05 -04:00

18 lines
350 B
JavaScript

var common = {};
common.lnd_server_url = 'https://localhost:8080/v1';
common.lnd_dir = '';
common.twoDecimalRound = (num) => {
return num.toFixed(2);
};
common.convertToBTC = (num) => {
return (num / 100000000).toFixed(6);
};
common.convertTimestampToDate = (num) => {
return new Date(+num*1000).toLocaleString();
};
module.exports = common;