RewardPriceObservation

Documentation for eth_defi.erc_4626.vault_protocol.flying_tulip.historical_context.RewardPriceObservation Python class.

class RewardPriceObservation

Bases: object

One 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 uint256 units are retained in the context cache so replay never depends on float serialisation.

Attributes summary

ethereum_block_number

Ethereum block used for the Curve read.

ethereum_block_timestamp

Unix timestamp of ethereum_block_number.

pool_address

Reviewed Ethereum Curve pool address.

raw_oracle

Raw inverse price_oracle() response.

oracle_updated_at

Curve's last oracle-update Unix timestamp.

raw_ft_price_in_ftusd

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)
Parameters
Return type

None