Skip to content

prop-amm: retune walkthrough trade to 5 NVDAx to match the book's wallet convention#109

Open
mikemaccana wants to merge 1 commit into
mainfrom
claude/solana-fintech-book-toc-rz4lpd
Open

prop-amm: retune walkthrough trade to 5 NVDAx to match the book's wallet convention#109
mikemaccana wants to merge 1 commit into
mainfrom
claude/solana-fintech-book-toc-rz4lpd

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

The book now gives every character a standard starting wallet of one SOL and 1,000 USDC, and the prop AMM chapter's Alice can no longer afford the old 10-NVDAx walkthrough buy (1,651.65 USDC). The chapter's numbers are the tests' numbers, so both move together: the walkthrough trade is now 5 NVDAx — 825.825 USDC at the $165.165 ask, 824.175 USDC back at the $164.835 bid, a 1.65 USDC round-trip spread. The oracle-repricing and re-quote fills scale the same way (850.85 at $170, 829.125 at 50 bps).

No program changes: same math, same gates, same assertions to the minor unit — only the amounts, verified independently in Python. Updated across the Anchor LiteSVM suite, the Quasar suite, the kani-proofs unit tests (buy_five_nvdax, sell_five_nvdax), and both READMEs; CHANGELOGs note the retune.

Testing

🤖 Generated with Claude Code

https://claude.ai/code/session_01MjDPoqwPYDGnLoMoXsto8r


Generated by Claude Code

…let convention

The book now gives every character a standard starting wallet of one SOL
and 1,000 USDC, and the prop AMM chapter's Alice can no longer afford the
old 10-NVDAx walkthrough buy (1,651.65 USDC). The chapter's numbers are
the tests' numbers, so both move together: the walkthrough trade is now
5 NVDAx — 825.825 USDC at the $165.165 ask, 824.175 USDC back at the
$164.835 bid, a 1.65 USDC round-trip spread. The oracle-repricing and
re-quote fills scale the same way (850.85 at $170, 829.125 at 50 bps).

No program changes: same math, same gates, same assertions to the minor
unit — only the amounts. Updated across the Anchor LiteSVM suite, the
Quasar suite, the kani-proofs unit tests, and both READMEs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MjDPoqwPYDGnLoMoXsto8r
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