Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhagarwal03 committed Aug 3, 2024
1 parent 712e764 commit 656e8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coingecko_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def price_retrievable(web3: Web3, block_start_timestamp: int) -> bool:
newest_block_timestamp = web3.eth.get_block(get_finalized_block_number(web3))[
"timestamp"
]
if (newest_block_timestamp - block_start_timestamp) > COINGECKO_TIME_LIMIT:
return True
return (newest_block_timestamp - block_start_timestamp) > COINGECKO_TIME_LIMIT



def get_price(web3: Web3, block_number: int, token_address: str, tx_hash: str):
Expand Down

0 comments on commit 656e8f4

Please sign in to comment.