mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-22 22:25:43 +01:00
18 lines
350 B
JavaScript
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;
|