RewardPriceObservation
Documentation for eth_defi.erc_4626.vault_protocol.flying_tulip.historical_context.RewardPriceObservation Python class.
- class RewardPriceObservation
Bases:
objectOne canonical FT/ftUSD price attached to a settled epoch.
The price is deliberately source-chain independent: each settlement uses the Ethereum Curve oracle at the greatest Ethereum block no later than the settlement timestamp. Raw
uint256units are retained in the context cache so replay never depends on float serialisation.Attributes summary
Ethereum block used for the Curve read.
Unix timestamp of
ethereum_block_number.Reviewed Ethereum Curve pool address.
Raw inverse
price_oracle()response.Curve's last oracle-update Unix timestamp.
Normalised ftUSD-per-FT price, scaled by 1e18.
Methods summary
__init__(ethereum_block_number, ...)- ethereum_block_number: int
Ethereum block used for the Curve read.
- ethereum_block_timestamp: int
Unix timestamp of
ethereum_block_number.
- pool_address: eth_typing.evm.HexAddress
Reviewed Ethereum Curve pool address.
- raw_oracle: int
Raw inverse
price_oracle()response.
- oracle_updated_at: int
Curve’s last oracle-update Unix timestamp.
- raw_ft_price_in_ftusd: int
Normalised ftUSD-per-FT price, scaled by 1e18.
- __init__(ethereum_block_number, ethereum_block_timestamp, pool_address, raw_oracle, oracle_updated_at, raw_ft_price_in_ftusd)