From 3c755b0144060b3817b5aaebe0b57ee7113eda95 Mon Sep 17 00:00:00 2001 From: Sergei Cherkasov <155839413+srgchrksv@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:03:43 +0400 Subject: [PATCH] docs: rename function get_positions_for_owner to fetch_positions_for_owner (#630) The get_positions_for_owner is not available in orca_whirlpools and fetch_positions_for_owner is working. --- .../04-Position Management/02-Fetch Positions.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/whirlpool/docs/03-Whirlpools SDKs/01-Whirlpools/04-Position Management/02-Fetch Positions.mdx b/docs/whirlpool/docs/03-Whirlpools SDKs/01-Whirlpools/04-Position Management/02-Fetch Positions.mdx index 943f6fc1c..55e574eb5 100644 --- a/docs/whirlpool/docs/03-Whirlpools SDKs/01-Whirlpools/04-Position Management/02-Fetch Positions.mdx +++ b/docs/whirlpool/docs/03-Whirlpools SDKs/01-Whirlpools/04-Position Management/02-Fetch Positions.mdx @@ -41,7 +41,7 @@ Fetching positions is a straightforward process: ```rust use orca_whirlpools::{ - get_positions_for_owner, set_whirlpools_config_address, WhirlpoolsConfigInput + fetch_positions_for_owner, set_whirlpools_config_address, WhirlpoolsConfigInput }; use solana_client::nonblocking::rpc_client::RpcClient; use solana_sdk::pubkey::Pubkey; @@ -54,7 +54,7 @@ Fetching positions is a straightforward process: let whirlpool_address = Pubkey::from_str("3KBZiL2g8C7tiJ32hTv5v3KM7aK9htpqTw4cTXz1HvPt").unwrap(); - let positions = get_positions_for_owner(&rpc, whirlpool_address) + let positions = fetch_positions_for_owner(&rpc, whirlpool_address) .await .unwrap();