---
type: Attested Computation
title: On-chain Senior metrics snapshot
description: Sanctioned computation of every figure in /metrics/latest.json (Senior eToken, Spot premiums account, MSV, Safes) by eth_call at one block; attested by re-reading each value at the receipt's block.
tags: [metrics, onchain, computation]
claim_basis: [onchain]
status: draft
runtime: python
computation: /scripts/update_metrics.py
parameters:
  - { name: ETH_RPC, type: string, required: false }
  - { name: ARCHIVE_RPC, type: string, required: false }
executor:
  resource: /scripts/update_metrics.py
  receipt: [as_of.block_number, as_of.rpc_url, "every value's raw and source fields"]
attester:
  resource: /scripts/attest.py
generated: { by: grok-bot/lp-bundle-v0.2, at: 2026-11-17T15:30:00-03:00 }
verified: { by: process:attest-metrics, at: 2026-11-17T15:40:00-03:00 }
stale_after: 2026-11-19T14:43:35-03:00
sources:
  - id: chain
    resource: https://etherscan.io/
    title: Ethereum mainnet state
---

# Computation

The computation is the file named in `computation`. It reads Ethereum mainnet by `eth_call` at a single block and writes [`/metrics/latest.json`](/metrics/latest.json); each value carries the function, contract, block and RPC that produced it.[^chain] Only the RPC endpoints may be supplied; the agent must not edit the script.

Run: `python scripts/update_metrics.py`. Attest: `python scripts/attest.py metrics` (PASS when every no-argument value matches the chain at the recorded block). A daily GitHub Actions job refreshes the file; [key metrics](/metrics/key-metrics.md) renders it.

[^chain]: Ethereum mainnet state
