near-explorer icon indicating copy to clipboard operation
near-explorer copied to clipboard

Tokens burnt in fees chart is not accurate

Open frol opened this issue 2 years ago • 0 comments

https://github.com/near/near-explorer/blob/bc2fd589e97cea66cb9992a3b06f7ac7be354d66/frontend/src/components/stats/GasUsedByDate.tsx#L37-L46

Due to the fact that the network is still underutilized, the gas price remains the same (100_000_000 yoctoNEAR per Gas unit), but we should not just blindly multiply all the historical gas usage by the current gas price, instead, we should compute chunks.gas_used * blocks.gas_price on a block-by-block basis and aggregate that, which is a task for https://github.com/telezhnaya/near-analytics

Given that the current implementation by a coincidence still reports the right stats, this issue is not going to be our priority any time soon.

frol avatar Oct 07 '21 09:10 frol