diff --git a/index.html b/index.html index b886729..ec68036 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,13 @@ + + @@ -191,12 +198,18 @@ -
+
@@ -347,6 +361,50 @@

Effective fee rate in BPS by transaction size

+ +
+ +
+
+ +
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + +
Node TypePubKey
+
+
+
+
+
+ +
+
+
+
@@ -384,5 +442,141 @@

Effective fee rate in BPS by transaction size

+ + + diff --git a/js/profile_details.js b/js/profile_details.js index db9020d..c194c29 100644 --- a/js/profile_details.js +++ b/js/profile_details.js @@ -213,6 +213,14 @@ function displayChannelTable(node) { // Function to display the Channel Size table function displayChannelSizeTable(node) { + // Helper function to format values + const formatToMillions = (value) => { + if (isNaN(value) || value === null || value === undefined) return 'N/A'; + return value >= 1_000_000 + ? `${Math.floor(value / 1_000_000)}M` // Convert to millions and remove decimals + : Math.floor(value).toLocaleString(); // Display the number without decimals, formatted with commas + }; + return `
@@ -223,16 +231,19 @@ function displayChannelSizeTable(node) { - - - - - + + + + +
Average Channel Size${node.Avg_Channel_Size || 'N/A'}
Max Channel Size${node.Max_Channel_Size || 'N/A'}
Median Channel Size${node.Median_Channel_Size || 'N/A'}
Min Channel Size${node.Min_Channel_Size || 'N/A'}
Mode Channel Size${node.Mode_Channel_Size || 'N/A'}
Average Channel Size${formatToMillions(node.Avg_Channel_Size)}
Max Channel Size${formatToMillions(node.Max_Channel_Size)}
Median Channel Size${formatToMillions(node.Median_Channel_Size)}
Min Channel Size${formatToMillions(node.Min_Channel_Size)}
Mode Channel Size${formatToMillions(node.Mode_Channel_Size)}
`; } + + + // Function to display the Base Fee table function displayBaseFeeTable(node) { let html = ` @@ -248,10 +259,14 @@ function displayBaseFeeTable(node) { for (const key in node) { if (key.endsWith('Base_Fee')) { + // Remove decimals using Math.floor or Math.round + let feeValue = node[key]; + feeValue = (isNaN(feeValue) || feeValue === null || feeValue === undefined) ? 'N/A' : Math.floor(feeValue); + html += ` ${key} - ${node[key] || 'N/A'} + ${feeValue} `; } } @@ -264,6 +279,7 @@ function displayBaseFeeTable(node) { return html; // Return the HTML for the Base Fee table } + // Append all tables in a single row function appendTables(node) { const tablesRow = ` diff --git a/pages/prank.html b/pages/prank.html index 068f0a7..7213b2b 100644 --- a/pages/prank.html +++ b/pages/prank.html @@ -3,49 +3,49 @@
- +
-
- -
-
-
- -
-

Prank, Pleb Ranking, a sophisticated method to rank nodes

-

PRank is a custom node ranking method. We look at weighted centrality measures to rank nodes. To learn about centrality read Centrality Measure.

- -
-
- -
-
-
- - - - - - - - - - - -
Pleb RankChannels RankCapacity RankAlias/Pub key
-
-
-
+
+ +
+
+
+ +
+

Prank, Pleb Ranking, a sophisticated method to rank nodes

+

PRank is a custom node ranking method. We look at weighted centrality measures to rank nodes. To learn about centrality read Centrality Measure.

+ +
+
+ +
+
+
+ + + + + + + + + + + +
Pleb RankChannels RankCapacity RankAlias/Pub key
+
- -
+
+ +
+
- + @@ -62,129 +62,105 @@

Prank, Pleb Ranking, a sophisticated method to - - - - + diff --git a/pages/ranking.html b/pages/ranking.html index 644009e..aebcceb 100644 --- a/pages/ranking.html +++ b/pages/ranking.html @@ -20,7 +20,7 @@

Capacity Rank, Channel Rank and Centrality ran
- +