From af533038e772cbdaba251fd0ca7308b061601dff Mon Sep 17 00:00:00 2001 From: Zentex Date: Tue, 3 Feb 2026 21:28:22 +0530 Subject: [PATCH] Fix incorrect parameter count in token-swap README Changed "four parameters" to "three parameters" in the create_amm function documentation to accurately reflect the actual number of parameters (ctx, id, and fee). Fixes #494 --- tokens/token-swap/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/token-swap/README.md b/tokens/token-swap/README.md index 9e6041b2f..c31b22009 100644 --- a/tokens/token-swap/README.md +++ b/tokens/token-swap/README.md @@ -145,7 +145,7 @@ This code implements a constant LEN for the Pool struct, which represents the si https://github.com/solana-developers/program-examples/blob/419cb6b6c20e8b1c65711b68a4dde2527725cc1a/tokens/token-swap/anchor/programs/token-swap/src/instructions/create_amm.rs#L1-L12 - The above code defines a function named **`create_amm`** that is used to create an AMM account. It takes four parameters: + The above code defines a function named **`create_amm`** that is used to create an AMM account. It takes three parameters: 1. **`ctx`**: The **`Context`** parameter contains the context data required to execute the function. 2. **`id`**: The **`Pubkey`** parameter represents the ID for the new AMM account.