Skip to content

Commit

Permalink
docs: rename function get_positions_for_owner to fetch_positions_for_…
Browse files Browse the repository at this point in the history
…owner (#630)

The get_positions_for_owner is not available in orca_whirlpools and fetch_positions_for_owner is working.
  • Loading branch information
srgchrksv authored Jan 6, 2025
1 parent bcbe126 commit 3c755b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Fetching positions is a straightforward process:
<TabItem value="rust" label="Rust">
```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 @@ -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();

Expand Down

0 comments on commit 3c755b0

Please sign in to comment.