OdaFactVaultHistoricalReader
Documentation for eth_defi.tokenised_fund.kinexys.historical.OdaFactVaultHistoricalReader Python class.
- class OdaFactVaultHistoricalReader
Bases:
eth_defi.vault.base.VaultHistoricalReaderRead ODA-FACT historical supply and estimated share price.
The on-chain part of ODA-FACT price history is ERC-20
totalSupply(). Share price is currently an explicit adapter-level estimate because the known ODA-FACT token surface does not expose ERC-4626-style share conversion or NAV history.Create an ODA-FACT historical reader.
- Parameters
vault – ODA-FACT vault adapter.
stateful – Whether to attach adaptive reader state used by the shared historical multicaller.
Attributes summary
addressfirst_blockMethods summary
__init__(vault, stateful)Create an ODA-FACT historical reader.
Construct ODA-FACT historical multicalls.
process_result(block_number, timestamp, ...)Convert ODA-FACT multicall results to a vault price row.
- __init__(vault, stateful)
Create an ODA-FACT historical reader.
- Parameters
vault (OdaFactVault) – ODA-FACT vault adapter.
stateful (bool) – Whether to attach adaptive reader state used by the shared historical multicaller.
- construct_multicalls()
Construct ODA-FACT historical multicalls.
- Returns
Multicall batch reading ERC-20
totalSupply().- Return type
collections.abc.Iterable[eth_defi.event_reader.multicall_batcher.EncodedCall]
- process_result(block_number, timestamp, call_results)
Convert ODA-FACT multicall results to a vault price row.
- Parameters
block_number (int) – Historical block number.
timestamp (datetime.datetime) – Naive UTC block timestamp.
call_results (list[eth_defi.event_reader.multicall_batcher.EncodedCallResult]) – Multicall results for calls from
construct_multicalls().
- Returns
VaultHistoricalReadwith ODA-FACT share price and supply.- Return type