Skip to content

Commit 5478c54

Browse files
committed
refreesh poolInfo if data is not found
Signed-off-by: MarcoMandar <[email protected]>
1 parent 41d1cef commit 5478c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/raydium/src/raydiumVault.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export async function claim(
177177
}
178178
}
179179

180-
if (!poolInfo || !poolInfo.lpMint) {
180+
if (!poolInfo || !poolInfo.lpMint || !poolInfo.lpMint?.address || !poolInfo.mintA || !poolInfo.mintB ) {
181181
poolInfo = (await raydium.api.fetchPoolById({ ids: poolId.toString() }))[0];
182182
if (!poolInfo) {
183183
throw new Error("Pool info not found");

0 commit comments

Comments
 (0)