Skip to content

Commit

Permalink
Fix fetch position by owner naming (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjthieme authored Dec 4, 2024
1 parent 9c20083 commit 05a28d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust-sdk/whirlpool/src/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn get_position_in_bundle_addresses(position_bundle: &PositionBundle) -> Vec<Pub
/// # Example
/// ```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;
Expand All @@ -129,14 +129,14 @@ fn get_position_in_bundle_addresses(position_bundle: &PositionBundle) -> Vec<Pub
/// 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();
///
/// println!("Positions: {:?}", positions);
/// }
/// ```
pub async fn get_positions_for_owner(
pub async fn fetch_positions_for_owner(
rpc: &RpcClient,
owner: Pubkey,
) -> Result<Vec<PositionOrBundle>, Box<dyn Error>> {
Expand Down

0 comments on commit 05a28d7

Please sign in to comment.