mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 06:01:11 +00:00
docs(apps/amm): remove stale BIN reference
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user