mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 01:40:29 +01:00
Sats to BTC Coversion Setting
Sats to BTC Coversion Setting
This commit is contained in:
parent
32224817ab
commit
b9ddb037b2
@ -5,8 +5,8 @@
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
|
||||
<link rel="icon" type="image/x-icon" href="./assets/img/favicon.ico">
|
||||
<link rel="stylesheet" href="styles.70db90adaa2591546c30.css"></head>
|
||||
<link rel="stylesheet" href="styles.e7e0523fb6e2165e600a.css"></head>
|
||||
<body>
|
||||
<rtl-root></rtl-root>
|
||||
|
||||
<script type="text/javascript" src="runtime.6afe30102d8fe7337431.js"></script><script type="text/javascript" src="polyfills.c7939909ac1e754960ad.js"></script><script type="text/javascript" src="main.d299048754b869d9b420.js"></script></body></html>
|
||||
<script type="text/javascript" src="runtime.6afe30102d8fe7337431.js"></script><script type="text/javascript" src="polyfills.c7939909ac1e754960ad.js"></script><script type="text/javascript" src="main.307530902e8a67e8f8bf.js"></script></body></html>
|
1
angular/main.307530902e8a67e8f8bf.js
Normal file
1
angular/main.307530902e8a67e8f8bf.js
Normal file
File diff suppressed because one or more lines are too long
1
angular/styles.e7e0523fb6e2165e600a.css
Normal file
1
angular/styles.e7e0523fb6e2165e600a.css
Normal file
File diff suppressed because one or more lines are too long
@ -18,16 +18,16 @@ exports.getBalance = (req, res, next) => {
|
||||
error: (undefined === body || search_idx > -1) ? 'ERROR From Server!' : body.error
|
||||
});
|
||||
} else {
|
||||
// body.balance = (undefined === body.balance) ? 0 : convertToBTC(body.balance);
|
||||
// body.total_balance = (undefined === body.total_balance) ? 0 : convertToBTC(body.total_balance);
|
||||
// body.confirmed_balance = (undefined === body.confirmed_balance) ? 0 : convertToBTC(body.confirmed_balance);
|
||||
// body.unconfirmed_balance = (undefined === body.unconfirmed_balance) ? 0 : convertToBTC(body.unconfirmed_balance);
|
||||
res.status(200).json({balance: body});
|
||||
body.btc_balance = (undefined === body.balance) ? 0 : convertToBTC(body.balance);
|
||||
body.btc_total_balance = (undefined === body.total_balance) ? 0 : convertToBTC(body.total_balance);
|
||||
body.btc_confirmed_balance = (undefined === body.confirmed_balance) ? 0 : convertToBTC(body.confirmed_balance);
|
||||
body.btc_unconfirmed_balance = (undefined === body.unconfirmed_balance) ? 0 : convertToBTC(body.unconfirmed_balance);
|
||||
res.status(200).json(body);
|
||||
}
|
||||
});
|
||||
|
||||
// convertToBTC = (num) => {
|
||||
// return (num / 100000000).toFixed(6);
|
||||
// };
|
||||
convertToBTC = (num) => {
|
||||
return (num / 100000000).toFixed(6);
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -15,10 +15,11 @@ exports.getGraphInfo = (req, res, next) => {
|
||||
});
|
||||
} else {
|
||||
body.avg_out_degree = (undefined === body.avg_out_degree) ? 0 : twoDecimalRound(body.avg_out_degree);
|
||||
// body.total_network_capacity = (undefined === body.total_network_capacity) ? 0 : convertToBTC(body.total_network_capacity);
|
||||
// body.avg_channel_size = (undefined === body.avg_channel_size) ? 0 : convertToBTC(body.avg_channel_size);
|
||||
// body.min_channel_size = (undefined === body.min_channel_size) ? 0 : convertToBTC(body.min_channel_size);
|
||||
// body.max_channel_size = (undefined === body.max_channel_size) ? 0 : convertToBTC(body.max_channel_size);
|
||||
body.avg_channel_size = (undefined === body.avg_channel_size) ? 0 : twoDecimalRound(body.avg_channel_size);
|
||||
body.btc_total_network_capacity = (undefined === body.total_network_capacity) ? 0 : convertToBTC(body.total_network_capacity);
|
||||
body.btc_avg_channel_size = (undefined === body.avg_channel_size) ? 0 : convertToBTC(body.avg_channel_size);
|
||||
body.btc_min_channel_size = (undefined === body.min_channel_size) ? 0 : convertToBTC(body.min_channel_size);
|
||||
body.btc_max_channel_size = (undefined === body.max_channel_size) ? 0 : convertToBTC(body.max_channel_size);
|
||||
console.log('Network Information After Rounding and Conversion: ' + body_str);
|
||||
res.status(200).json(body);
|
||||
}
|
||||
@ -28,8 +29,8 @@ exports.getGraphInfo = (req, res, next) => {
|
||||
return num.toFixed(2);
|
||||
};
|
||||
|
||||
// convertToBTC = (num) => {
|
||||
// return (num / 100000000).toFixed(6);
|
||||
// };
|
||||
convertToBTC = (num) => {
|
||||
return (num / 100000000).toFixed(6);
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -1 +1 @@
|
||||
{"name":"RTL","loadingSpinner":false,"fixedHeader":false,"sidenavIsOpened":true,"sidenavIsPinned":true,"sidenavUserBlock":true,"menu":"vertical","menuType":"default","theme":"light-blue","rtl":false,"lndConfigPath":""}
|
||||
{"name":"RTL","loadingSpinner":false,"fixedHeader":false,"sidenavIsOpened":true,"sidenavIsPinned":true,"sidenavUserBlock":true,"menu":"vertical","menuType":"default","theme":"light-blue","rtl":false,"lndConfigPath":"","satsToBTC":false}
|
Loading…
Reference in New Issue
Block a user