Skip to content

Lending: fix stale LendingMarket seed docs in both READMEs#74

Merged
mikemaccana merged 1 commit into
mainfrom
claude/busy-pasteur-eMVnc
Jun 21, 2026
Merged

Lending: fix stale LendingMarket seed docs in both READMEs#74
mikemaccana merged 1 commit into
mainfrom
claude/busy-pasteur-eMVnc

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

Follow-up to #73 (merged). The code there changed the LendingMarket PDA 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

  • Both READMEs now describe the market PDA seed as ["lending_market", market_id] (a u64 index).
  • Makes the rationale explicit: owner is stored as a field for has_one authorization, 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

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
@mikemaccana mikemaccana merged commit df50af0 into main Jun 21, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants