OdaFactVaultHistoricalReader

Documentation for eth_defi.tokenised_fund.kinexys.historical.OdaFactVaultHistoricalReader Python class.

class OdaFactVaultHistoricalReader

Bases: eth_defi.vault.base.VaultHistoricalReader

Read 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

address

first_block

Methods summary

__init__(vault, stateful)

Create an ODA-FACT historical reader.

construct_multicalls()

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
Returns

VaultHistoricalRead with ODA-FACT share price and supply.

Return type

eth_defi.vault.base.VaultHistoricalRead