I can help you with that article. Here is a project:
Title: Solana: Raydium Sdk V2 That Shows No Liquidity In The Clmm Position When You Try To Close
Introduction:
As a raidium user, I experience a problem when I tried to close to close a liquidity position on the solana blockchain using SDK v2. Despite the fact that it has a group of active trading pairs,
Problem:
To test the SDK v2, I opened a position of the liquidity pool in closing. However, when I try to close this position using closeposis.ts, I encountered a problem where no significant progress has been made. The product tx product was not relevant to the transaction itself, but rather it seems to be related to another type of event.
Code:
Here is a simplified example of my closing code.ts:
`Typescript
Import {chainid, sdk} from ‘@Raydium/Sdk’;
Import {Closepoussirquest} from ‘.
Const chainid = chainid.solana;
Async Function Closeposis (Request: Closeposiderequest) {
Const liquidypoolid = request.liquiditypoolide;
Const assetids = [request.asset1id, request.asset2id];
Const position = ‘position-123’; // Id of the Sample Position
Try {
WAIT SDK.Closeposis (
Chainid,
Liquidypoolide,
active
post
);
} Catch (Error) {
Console.Error (Error);
}
}
“
Problem:
When However, as no id tx.
Possible Cause:
Given that the SDK v2 uses a different openposis flow flow, Alternatively
Solution:
To solve this problem, I would recommend checking the following:
1.
2.
3.
Conclusion:
Probleming on the Raydium Sdk. If you have simple problems,