fetch_curve_reward_price

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

fetch_curve_reward_price(web3, ethereum_block_number, block_timestamp)

Read and normalise the FT/ftUSD Curve oracle at one Ethereum block.

Parameters
  • web3 (web3.main.Web3) – Archive-capable Ethereum connection.

  • ethereum_block_number (int) – Exact historical state block.

  • block_timestamp (int) – Timestamp from the cache-aware Hypersync block map.

Returns

Raw and normalised Curve oracle provenance.

Return type

eth_defi.erc_4626.vault_protocol.flying_tulip.historical_context.RewardPriceObservation