Update mempool URL comment and dashboard metrics

Clarified the use of "mempool.guide" in `blocks.js` to align with Ocean.xyz ethos.

In `dashboard.html`, replaced the "Pool Fees" section with "Blocks Found," including logic to display the number of blocks found, defaulting to "0" if not defined. Removed associated pool fees logic and updated indicators accordingly.
This commit is contained in:
DJObleezy 2025-04-19 09:35:38 -07:00
parent f6b3fdb094
commit 4f52697185
2 changed files with 16 additions and 16 deletions

View File

@ -2,7 +2,7 @@
// Global variables
let currentStartHeight = null;
const mempoolBaseUrl = "https://mempool.guide";
const mempoolBaseUrl = "https://mempool.guide"; // Switched from mempool.space to mempool.guide - more aligned with Ocean.xyz ethos
let blocksCache = {};
let isLoading = false;

View File

@ -40,18 +40,11 @@
<span id="last_share" class="metric-value">{{ metrics.total_last_share or "N/A" }}</span>
</p>
<p>
<strong>Pool Fees:</strong>
<span id="pool_fees_percentage" class="metric-value">
{% if metrics and metrics.pool_fees_percentage is defined %}
{{ metrics.pool_fees_percentage }}%
{% if metrics.pool_fees_percentage >= 0.9 and metrics.pool_fees_percentage <= 1.3 %}
<span class="fee-star"></span> <span class="datum-label">DATUM</span>
{% endif %}
{% else %}
N/A
{% endif %}
<strong>Blocks Found:</strong>
<span id="blocks_found" class="metric-value white">
{{ metrics.blocks_found if metrics and metrics.blocks_found else "0" }}
</span>
<span id="indicator_pool_fees_percentage"></span>
<span id="indicator_blocks_found"></span>
</p>
</div>
</div>
@ -99,11 +92,18 @@
<span id="indicator_est_time_to_payout"></span>
</p>
<p>
<strong>Blocks Found:</strong>
<span id="blocks_found" class="metric-value white">
{{ metrics.blocks_found if metrics and metrics.blocks_found else "0" }}
<strong>Pool Fees:</strong>
<span id="pool_fees_percentage" class="metric-value">
{% if metrics and metrics.pool_fees_percentage is defined %}
{{ metrics.pool_fees_percentage }}%
{% if metrics.pool_fees_percentage >= 0.9 and metrics.pool_fees_percentage <= 1.3 %}
<span class="fee-star"></span> <span class="datum-label">DATUM</span>
{% endif %}
{% else %}
N/A
{% endif %}
</span>
<span id="indicator_blocks_found"></span>
<span id="indicator_pool_fees_percentage"></span>
</p>
</div>
</div>