docs(apps/amm): remove stale BIN reference

This commit is contained in:
r4bbit
2026-08-03 23:11:06 +02:00
parent f5ff9b829f
commit 96dc69c39f
+3 -3
View File
@@ -169,9 +169,9 @@ AMM_PROGRAM_BIN=/abs/path/to/amm.bin nix run .#amm-ui
This is the same `amm.bin` you deployed via the testnet runbook
(`programs/amm/methods/guest/target/riscv32im-risc0-zkvm-elf/docker/amm.bin`).
The app reads it, derives the AMM program id (`amm_client_program_id_from_elf`),
and reads the on-chain AMM config account to discover the TWAP oracle program id
for the pool's current-tick PDA. If `AMM_PROGRAM_BIN` is unset or unreadable, the
The app reads it, derives the AMM program id (the binary's RISC Zero Image ID,
via `amm_ffi`'s `program_id` op), and reads the on-chain AMM config account to
discover the TWAP oracle program id for the pool's current-tick PDA. If `AMM_PROGRAM_BIN` is unset or unreadable, the
Swap view stays disabled (no pool can be resolved).
> **Golden rule (from the runbook):** recompiling the AMM changes its program id