Skip to content

Commit 6d83db2

Browse files
authored
Merge pull request #511 from elizaOS/claim-poolinfo-refresh
refresh poolInfo if data is not found
2 parents 41d1cef + 5478c54 commit 6d83db2

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)