@@ -115,7 +115,7 @@ <h5 class="mb-0"><i class="fas fa-calculator"></i> Blob Storage Calculator (Peer
115115 < div class ="alert alert-success p-4 text-center border-2 ">
116116 < h4 class ="mb-2 text-success "> Current Storage Required</ h4 >
117117 < h1 class ="mb-0 display-4 fw-bold text-success " id ="storageResult "> Loading...</ h1 >
118- < small class ="text-muted d-block mt-2 " id ="storageDescription "> Based on {{ formatAddCommas .BlobsLast30d }} blobs in last 1d </ small >
118+ < small class ="text-muted d-block mt-2 " id ="storageDescription "> Based on {{ formatAddCommas .BlobsLast18d }} blobs in last 18d </ small >
119119 </ div >
120120
121121 < div class ="mt-3 ">
@@ -210,10 +210,10 @@ <h5 class="mb-0"><i class="fas fa-list"></i> Latest Blob Transactions</h5>
210210const FREE_THRESHOLD_ETH = VALIDATOR_CUSTODY_REQUIREMENT * MAX_EFFECTIVE_BALANCE_ETH ;
211211const MAX_ETH = { { . StorageCalculator . MaxEth } } ;
212212
213- const blobsInRetentionWindow = { { . BlobsLast30d } } ;
213+ const blobsInRetentionWindow = { { . BlobsLast18d } } ;
214214const blobsLast24h = { { . BlobsLast24h } } ;
215215const blobsLast7d = { { . BlobsLast7d } } ;
216- const blobsLast18d = { { . BlobsLast30d } } ;
216+ const blobsLast18d = { { . BlobsLast18d } } ;
217217
218218const timeStats = {
219219 '1h' : {
@@ -235,7 +235,7 @@ <h5 class="mb-0"><i class="fas fa-list"></i> Latest Blob Transactions</h5>
235235 label : '7d'
236236 } ,
237237 '18d' : {
238- blobs : { { . BlobsLast30d } } ,
238+ blobs : { { . BlobsLast18d } } ,
239239 blocksWithBlobs : { { . BlocksWithBlobsLast18d } } ,
240240 blobGas : { { . BlobGasLast18d } } ,
241241 label : '18d'
@@ -244,6 +244,7 @@ <h5 class="mb-0"><i class="fas fa-list"></i> Latest Blob Transactions</h5>
244244
245245let currentPeriod = '1d' ;
246246let currentBlobCount = { { . BlobsLast24h } } ;
247+ const calculatorBlobCount = { { . BlobsLast18d } } ;
247248
248249function updateTimeStats ( period ) {
249250 const stats = timeStats [ period ] ;
@@ -262,9 +263,6 @@ <h5 class="mb-0"><i class="fas fa-list"></i> Latest Blob Transactions</h5>
262263
263264 const avgGas = blocks > 0 ? Math . round ( gas / blocks ) . toLocaleString ( ) : '0' ;
264265 document . getElementById ( 'timeAvgGas' ) . textContent = avgGas ;
265-
266- const ethValue = parseInt ( document . getElementById ( 'ethSlider' ) . value ) ;
267- updateCalculator ( ethValue , false ) ;
268266}
269267
270268function calculateCustodyColumns ( eth ) {
@@ -286,7 +284,7 @@ <h5 class="mb-0"><i class="fas fa-list"></i> Latest Blob Transactions</h5>
286284 const columns = calculateCustodyColumns ( eth ) ;
287285 const custodyPercent = ( ( columns / TOTAL_COLUMNS ) * 100 ) . toFixed ( 2 ) ;
288286
289- const blobsToStore = currentBlobCount > 0 ? currentBlobCount : 0 ;
287+ const blobsToStore = calculatorBlobCount > 0 ? calculatorBlobCount : 0 ;
290288
291289 const storageBytes = blobsToStore * columns * COLUMN_SIZE_BYTES ;
292290 const storageKiB = storageBytes / 1024 ;
@@ -337,7 +335,7 @@ <h5 class="mb-0"><i class="fas fa-list"></i> Latest Blob Transactions</h5>
337335
338336 document . getElementById ( 'storageResult' ) . textContent = storageText ;
339337
340- const descText = 'Based on ' + currentBlobCount . toLocaleString ( ) + ' blobs in last ' + currentPeriod ;
338+ const descText = 'Based on ' + calculatorBlobCount . toLocaleString ( ) + ' blobs in last 18d' ;
341339 document . getElementById ( 'storageDescription' ) . textContent = descText ;
342340}
343341
0 commit comments