Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix neg interest inv check time log to be human readable #1732

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/agent0/hyperfuzz/system_fuzz/invariant_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import logging
import time
from datetime import datetime
from typing import Any, Callable, NamedTuple

from fixedpointmath import FixedPoint
Expand Down Expand Up @@ -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: "
Expand Down
Loading