From e3d94dc271313ed1e674e1286335e51ef9832f51 Mon Sep 17 00:00:00 2001 From: silentgeckoaudit3801 Date: Thu, 23 Jul 2026 19:58:07 -0600 Subject: [PATCH] docs: rustdoc markets read cache constructor --- contracts/predictify-hybrid/src/markets.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contracts/predictify-hybrid/src/markets.rs b/contracts/predictify-hybrid/src/markets.rs index ab5db911..e2a3d1c8 100644 --- a/contracts/predictify-hybrid/src/markets.rs +++ b/contracts/predictify-hybrid/src/markets.rs @@ -725,6 +725,11 @@ pub struct MarketReadCache<'a> { } impl<'a> MarketReadCache<'a> { + /// Creates a market read cache bound to the current contract environment. + /// + /// The cache uses instance storage for read-only market lookups, so callers + /// should create it per operation and continue to treat persistent storage as + /// the source of truth for mutations. pub fn new(env: &'a Env) -> Self { Self { env } }