From 575050dfbcb4d2dd9c43c38067ce85ad85bbfbaf Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 13 Nov 2024 09:54:03 +0700 Subject: [PATCH] fix time log to be human readable --- src/agent0/hyperfuzz/system_fuzz/invariant_checks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agent0/hyperfuzz/system_fuzz/invariant_checks.py b/src/agent0/hyperfuzz/system_fuzz/invariant_checks.py index 57b104fd4..6b3678a95 100644 --- a/src/agent0/hyperfuzz/system_fuzz/invariant_checks.py +++ b/src/agent0/hyperfuzz/system_fuzz/invariant_checks.py @@ -4,6 +4,7 @@ import logging import time +from datetime import datetime from typing import Any, Callable, NamedTuple from fixedpointmath import FixedPoint @@ -316,11 +317,11 @@ def _check_negative_interest(interface: HyperdriveReadInterface, pool_state: Poo "Negative interest detected beteween block " f"{previous_pool_state.block_number} " "at time " - f"{previous_pool_state.block_time} " + f"{datetime.fromtimestamp(previous_pool_state.block_time).strftime('%Y-%m-%d %H:%M:%S')}" "and block " f"{pool_state.block_number} " "at time " - f"{pool_state.block_time} " + f"{datetime.fromtimestamp(pool_state.block_time).strftime('%Y-%m-%d %H:%M:%S')}" f"on {paused_str} pool. " f"{current_vault_share_price=}, {previous_vault_share_price=}. " "Difference in wei: "