From f7c35cc07dc6ab4f403e0ae57861f2103785f7c2 Mon Sep 17 00:00:00 2001 From: Pluto Han Date: Sat, 6 Jun 2026 16:36:17 +0400 Subject: [PATCH] docs: fix incorrect parameter count in token-swap README (#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 c31b22009..46da16dbe 100644 --- a/tokens/token-swap/README.md +++ b/tokens/token-swap/README.md @@ -241,7 +241,7 @@ TRDR, this code implements the logic to deposit liquidity into the pool, ensurin https://github.com/solana-developers/program-examples/blob/419cb6b6c20e8b1c65711b68a4dde2527725cc1a/tokens/token-swap/anchor/programs/token-swap/src/instructions/swap_exact_tokens_for_tokens.rs#L1-L27 - This code defines a function named **`swap_exact_tokens_for_tokens`** that allows swapping tokens A for tokens B (and vice versa) in the AMM pool. It takes five parameters: + This code defines a function named **`swap_exact_tokens_for_tokens`** that allows swapping tokens A for tokens B (and vice versa) in the AMM pool. It takes four parameters: 1. **`ctx`**: The **`Context`** parameter contains the context data required to execute the function. 2. **`swap_a`**: The **`bool`** parameter indicates whether tokens A should be swapped for tokens B (**`true`**) or tokens B should be swapped for tokens A (**`false`**).