From 43953f262f9151f99441f97583a18cc8832224da Mon Sep 17 00:00:00 2001 From: calintje Date: Mon, 30 Dec 2024 05:23:16 +0100 Subject: [PATCH] Update description --- src/langchain/index.ts | 2 +- src/tools/orca_open_centered_position_with_liquidity.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/langchain/index.ts b/src/langchain/index.ts index 4abf169..92f3a58 100644 --- a/src/langchain/index.ts +++ b/src/langchain/index.ts @@ -979,7 +979,7 @@ export class SolanaOrcaOpenCenteredPosition extends Tool { Inputs (JSON string): - whirlpoolAddress: string, address of the Orca Whirlpool (required). - - priceOffsetBps: number, bps offset (one side) from the center price, e.g., 500 for 5% (required). + - priceOffsetBps: number, bps offset (one side) from the current pool price, e.g., 500 for 5% (required). - inputTokenMint: string, mint address of the deposit token (required). - inputAmount: number, amount of the deposit token, e.g., 100.0 (required).`; diff --git a/src/tools/orca_open_centered_position_with_liquidity.ts b/src/tools/orca_open_centered_position_with_liquidity.ts index c061c8e..2213c12 100644 --- a/src/tools/orca_open_centered_position_with_liquidity.ts +++ b/src/tools/orca_open_centered_position_with_liquidity.ts @@ -20,15 +20,15 @@ import { TOKEN_2022_PROGRAM_ID } from "@solana/spl-token"; * # Opens a Centered Liquidity Position in an Orca Whirlpool * * This function opens a centered liquidity position in a specified Orca Whirlpool. The user defines - * a basis point (bps) offset from the center price to set the lower and upper bounds of the position. + * a basis point (bps) offset from the cuurent price of the pool to set the lower and upper bounds of the position. * The user also specifies the token mint and the amount to deposit. The required amount of the other token * is calculated automatically. * * ## Parameters * - `agent`: The `SolanaAgentKit` instance representing the wallet and connection details. * - `whirlpoolAddress`: The address of the Orca Whirlpool where the position will be opened. - * - `priceOffsetBps`: The basis point (bps) offset (on one side) from the center price. For example, - * 500 bps (5%) creates a range from 95% to 105% of the center price. + * - `priceOffsetBps`: The basis point (bps) offset (on one side) from the current price fo the pool. For example, + * 500 bps (5%) creates a range from 95% to 105% of the current pool price. * - `inputTokenMint`: The mint address of the token being deposited (e.g., USDC or another token). * - `inputAmount`: The amount of the input token to deposit, specified as a `Decimal` value. * @@ -50,7 +50,7 @@ import { TOKEN_2022_PROGRAM_ID } from "@solana/spl-token"; * * @param agent - The `SolanaAgentKit` instance representing the wallet and connection. * @param whirlpoolAddress - The address of the Orca Whirlpool. - * @param priceOffsetBps - The basis point offset (one side) from the center price. + * @param priceOffsetBps - The basis point offset (one side) from the current pool price. * @param inputTokenMint - The mint address of the token to deposit. * @param inputAmount - The amount of the input token to deposit. * @returns A promise resolving to the transaction ID (`string`).