fetch_and_store_flying_tulip_reward_prices

Documentation for eth_defi.erc_4626.vault_protocol.flying_tulip.reward_price.fetch_and_store_flying_tulip_reward_prices function.

fetch_and_store_flying_tulip_reward_prices(*, ethereum_web3, ethereum_hypersync_client, chain_id, ethereum_start_block, ethereum_end_block, context_path, timestamp_cache_path=PosixPath('/home/runner/.tradingstrategy/block-timestamp'))

Map stored epochs to Ethereum and persist their canonical Curve prices.

Only epochs at or after the canonical Curve market’s deployment timestamp are considered. The caller supplies an Ethereum range containing those epochs. Compact gaps in the shared timestamp cache are filled through Hypersync, then each foreign-chain settlement is mapped to the greatest Ethereum block whose timestamp is not later than that settlement.

Parameters
  • ethereum_web3 (web3.main.Web3) – Archive-capable Ethereum provider for historical Curve state calls.

  • ethereum_hypersync_client (eth_defi.hypersync.session.ThrottledHypersyncClient) – Throttle-aware Ethereum Hypersync client for timestamp cache fills.

  • chain_id (int) – Source sftUSD deployment chain.

  • ethereum_start_block (int) – Inclusive, timestamp-cache Ethereum range boundary.

  • ethereum_end_block (int) – Exclusive, snapped Ethereum safe head.

  • context_path (pathlib.Path) – Shared contextual cache path.

  • timestamp_cache_path (pathlib.Path) – Shared block-timestamp cache directory.

Returns

Price prefill diagnostics.

Return type

eth_defi.erc_4626.vault_protocol.flying_tulip.reward_price.FlyingTulipRewardPricePrefillResult