From 981d14efe40c3a160d98bc3f3ac61de3cf7a1f6d Mon Sep 17 00:00:00 2001 From: Hemant <114517078+MrBlackGhostt@users.noreply.github.com> Date: Tue, 30 Dec 2025 19:16:13 +0530 Subject: [PATCH] Written four parameters but it take three In The Instructions 3.1 Create amm The no of parameters written four but it take three --- 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.