Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fetch position by owner naming #569

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading