Lending: fix stale LendingMarket seed docs in both READMEs#74
Merged
Conversation
Both READMEs still described the market PDA seed as ["lending_market", owner, market_id] — the old design where the owner's public key was baked into a shared struct's address. The code was already corrected to ["lending_market", market_id] in commit f250b6e; this brings the prose into agreement. Also makes the reason explicit: owner is stored as a field for has_one authorization, not in the seed, so no individual's public key appears in a shared struct's address. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RwE8f8ahP5S6SDNTsXmpj9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #73 (merged). The code there changed the
LendingMarketPDA seed to["lending_market", market_id]— no owner in the seed — but the Anchor and Quasar README prose still described the old["lending_market", owner, market_id]seed. This brings the docs into agreement with the code.Changes
["lending_market", market_id](au64index).owneris stored as a field forhas_oneauthorization, not baked into the address, so no individual's public key appears in a shared struct's address.Docs-only; no code or tests changed. (The price-feed seed prose was already correct.)
🤖 Generated with Claude Code
https://claude.ai/code/session_01RwE8f8ahP5S6SDNTsXmpj9
Generated by Claude Code