In contracts/common/src/lib.rs, extend_ttl_for_target has an extensive doc comment (30+ lines) explaining exactly where its numbers come from, including a reference to APPROX_SECONDS_PER_LEDGER and the specific issue (#56) that motivated it. The simpler extend_ttl function right above it — the one actually used on the overwhelming majority of storage writes across all three contracts — has zero explanatory comment for its own magic numbers (env.storage().persistent().extend_ttl(key, 100_000, 500_000)). README.md does explain the derivation elsewhere ("~29 days... 500_000 × 5 ÷ 86,400"), but that context isn't linked from the function itself, so a reader going straight to the source has no way to know these aren't arbitrary.
Add a short comment on extend_ttl (or a doc link to the README section) explaining the 100_000/500_000 derivation, matching the standard extend_ttl_for_target already sets in the same file.
In
contracts/common/src/lib.rs,extend_ttl_for_targethas an extensive doc comment (30+ lines) explaining exactly where its numbers come from, including a reference toAPPROX_SECONDS_PER_LEDGERand the specific issue (#56) that motivated it. The simplerextend_ttlfunction right above it — the one actually used on the overwhelming majority of storage writes across all three contracts — has zero explanatory comment for its own magic numbers (env.storage().persistent().extend_ttl(key, 100_000, 500_000)). README.md does explain the derivation elsewhere ("~29 days...500_000 × 5 ÷ 86,400"), but that context isn't linked from the function itself, so a reader going straight to the source has no way to know these aren't arbitrary.Add a short comment on
extend_ttl(or a doc link to the README section) explaining the 100_000/500_000 derivation, matching the standardextend_ttl_for_targetalready sets in the same file.