tokenised_fund.theo.historical

Documentation for eth_defi.tokenised_fund.theo.historical Python module.

Historical reads for Theo iToken share tokens.

Classes

TheoITokenHistoricalReader

Read thBILL supply without fabricating NAV or TVL.

class TheoITokenHistoricalReader

Bases: eth_defi.vault.base.VaultHistoricalReader

Read thBILL supply without fabricating NAV or TVL.

Theo’s iToken conversion interface returns a basket of assets rather than one scalar price. A price would need reviewed basket valuations, so this reader retains only the verifiable ERC-20 supply observation.

Create a supply-only iToken reader.

Parameters
  • vault – Theo iToken adapter.

  • stateful – Whether to retain supply-only adaptive reader state.

__init__(vault, stateful)

Create a supply-only iToken reader.

Parameters
  • vault (TheoITokenVault) – Theo iToken adapter.

  • stateful (bool) – Whether to retain supply-only adaptive reader state.

construct_multicalls()

Construct the ERC-20 supply read.

Returns

A totalSupply() multicall.

Return type

collections.abc.Iterable[eth_defi.event_reader.multicall_batcher.EncodedCall]

process_result(block_number, timestamp, call_results)

Convert a supply read to an explicitly unpriced history row.

Parameters
Returns

Supply-only thBILL observation.

Return type

eth_defi.vault.base.VaultHistoricalRead