Skip to content

Commit

Permalink
add block number print
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaiton committed Nov 4, 2024
1 parent 97258c3 commit 81d9bb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/check_ezeth.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def main(start_block_timestamp: int, lookback_length: int):
lookback_pool_state = ezeth_pool.interface.get_hyperdrive_state(block_identifier=lookback_block_number)
lookback_vault_share_price = lookback_pool_state.pool_info.vault_share_price

print(
f"Calculating vault share price difference between block {start_block_number} and block {lookback_block_number}"
)
print(f"time = {start_block_timestamp}; vault share price = {start_vault_share_price}")
print(f"time = {lookback_timestamp}; vault share price = {lookback_vault_share_price}")
print(f"Difference: {start_vault_share_price - lookback_vault_share_price=}")
Expand Down

0 comments on commit 81d9bb4

Please sign in to comment.