Skip to content

Options: rename underlying_locked and quote_locked to underlying_owed and quote_owed - #173

Merged
mikemaccana merged 1 commit into
mainfrom
claude/options-owed-fields
Sep 30, 2026
Merged

mikemaccana merged 1 commit into
mainfrom
claude/options-owed-fields

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

Each field counts what the market's vault owes: collateral to writers, and settlement proceeds waiting for a writer or holder to collect. "Locked" doesn't say to whom, and can read as a lock in the file-locking sense. The fields' own doc comments already said "the vault owes".

The renames, in Anchor, Anchor v1, Quasar and the Kani harnesses:

Before After
Market.underlying_locked underlying_owed
Market.quote_locked quote_owed
Quasar's add_locked / sub_locked add_owed / sub_owed

Comments and test messages that said tokens are "locked to" someone now say "owed to".

The account layout is unchanged; the IDL field names change.

Checks:

  • cargo fmt --check is clean.
  • cargo check --tests passes for all four crates.
  • The tests themselves run in CI.

The book follows once this merges: quicknode/solana-book#190 and the Options chapter.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JGEoAUjMm7Evv69k46eNcn


Generated by Claude Code

… and quote_owed

Each field counts what the market's vault owes: collateral to writers, and
settlement proceeds waiting for a writer or holder to collect them. "Locked"
did not say to whom, and could read as a lock in the file-locking sense. The
Quasar helpers add_locked and sub_locked become add_owed and sub_owed, and the
comments and test messages that said tokens were "locked to" someone now say
"owed to". The account layout is unchanged; the IDL field names change.

From quicknode/solana-book#190.

Claude-Session: https://claude.ai/code/session_01JGEoAUjMm7Evv69k46eNcn
@mikemaccana
mikemaccana merged commit 8bc6ac7 into main Sep 30, 2026
33 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.

1 participant