diff --git a/web3_proxy/src/compute_units.rs b/web3_proxy/src/compute_units.rs index 7a6fca64..be1402c7 100644 --- a/web3_proxy/src/compute_units.rs +++ b/web3_proxy/src/compute_units.rs @@ -20,7 +20,7 @@ pub fn default_usd_per_cu(chain_id: u64) -> Decimal { } pub fn default_cu_per_byte(_chain_id: u64) -> Decimal { - Decimal::new(4, 2).unwrap() + Decimal::new(4, 2) } #[derive(Debug)] diff --git a/web3_proxy/src/frontend/status.rs b/web3_proxy/src/frontend/status.rs index f6467859..6b985df3 100644 --- a/web3_proxy/src/frontend/status.rs +++ b/web3_proxy/src/frontend/status.rs @@ -203,12 +203,13 @@ async fn _status(app: Arc) -> (StatusCode, &'static str, Bytes) { MokaCacheSerializer(&app.user_semaphores), ], "chain_id": app.config.chain_id, - "head_block_num": head_block.as_ref().map(|x| x.number()), "head_block_hash": head_block.as_ref().map(|x| x.hash()), + "head_block_num": head_block.as_ref().map(|x| x.number()), "hostname": app.hostname, "payment_factory_address": app.config.deposit_factory_contract, "pending_txid_firehose": app.pending_txid_firehose, "private_rpcs": app.private_rpcs, + "uptime": app.start.elapsed().as_secs(), "version": APP_USER_AGENT, });