erc_4626.vault_protocol.rysk.historical
Documentation for eth_defi.erc_4626.vault_protocol.rysk.historical Python module.
Contextual share-price reader for Rysk Premium option pools.
Classes
Read final Rysk Premium epoch withdrawal prices from local context. |
- class RyskPremiumHistoricalReader
Bases:
eth_defi.vault.base.VaultHistoricalReaderRead final Rysk Premium epoch withdrawal prices from local context.
The reader adapts sparse, finalised onchain epoch events to the common historical interface without issuing block-by-block multicalls.
- property uses_contextual_history: bool
Select the Rysk event-backed contextual scanner branch.
Rysk valuation is supplied by final epoch records, so the common scanner must invoke
fetch_contextual_historical_reads().- Returns
Always
True.
- construct_multicalls()
Return no calls because Rysk prices are event-contextual.
The method satisfies the shared reader interface but deliberately contributes no static EVM calls to a historical batch.
- Returns
Empty iterator.
- Return type
collections.abc.Iterable[eth_defi.event_reader.multicall_batcher.EncodedCall]
- process_result(block_number, timestamp, call_results)
Reject the ordinary static multicall route.
Reaching this method would mean the common scanner routed a contextual Rysk reader through the wrong execution branch.
- Parameters
block_number (int) – Ignored static scanner block.
timestamp (datetime.datetime) – Ignored static scanner timestamp.
call_results (list[eth_defi.event_reader.multicall_batcher.EncodedCallResult]) – Ignored multicall results.
- Returns
Never returns.
- Raises
RuntimeError – Always, because prefilled context owns this history.
- Return type
- fetch_contextual_historical_reads(start_block, end_block, step)
Yield final epoch withdrawal PPS observations.
Prices are scaled with the collateral token’s native decimals and emitted without fabricated NAV, asset or share-supply values.
- Parameters
- Returns
Rysk share-price-equivalent records.
- Return type
collections.abc.Iterable[eth_defi.vault.base.VaultHistoricalRead]
- __init__(vault)
- Parameters
vault (eth_defi.vault.base.VaultBase) –
Return this reader’s sparse share-price comparison threshold.
Event-only readers may require every exact price change; ordinary readers retain the existing ten-basis-point suppression threshold.
- Returns
Non-negative relative suppression threshold.
Return whether cash flows must be ignored by the sparse filter.
Vault-like products without a standard share-price method can still expose a supply-normalised price equivalent. Their TVL and supply changes must not create false performance observations.
- Returns
Truewhen the vault carries theshare_price_equivalencefeature.