Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fetch positions by whirlpool function #485

Merged
merged 4 commits into from
Nov 8, 2024

Conversation

wjthieme
Copy link
Member

@wjthieme wjthieme commented Nov 8, 2024

No description provided.

@wjthieme wjthieme self-assigned this Nov 8, 2024
Copy link
Collaborator

@yugure-orca yugure-orca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this is it! 🙏
nit: function comment ?

rpc: Rpc<GetProgramAccountsApi>,
whirlpool: Address,
): Promise<HydratedPosition[]> {
const positions = await fetchAllPositionWithFilter(rpc, positionWhirlpoolFilter(whirlpool));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, great.

@wjthieme wjthieme enabled auto-merge (squash) November 8, 2024 18:45
@wjthieme wjthieme merged commit cf29c17 into main Nov 8, 2024
5 checks passed
@wjthieme wjthieme deleted the wjthieme/fetch-position-by-pool branch November 8, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants