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

associatedBondingCurve #26

Open
aszx29 opened this issue Dec 28, 2024 · 1 comment
Open

associatedBondingCurve #26

aszx29 opened this issue Dec 28, 2024 · 1 comment

Comments

@aszx29
Copy link

aszx29 commented Dec 28, 2024

Hello, I have a question I would like to consult with you about. Your program and nodes are great, and now what I need to do is improve my purchase speed. Although using logsSubscribe generates a high number of requests, its speed is much faster than blockSubscribe. However, using log subscription leads to the lack of associatedBondingCurve, but it can be generated by utilizing the captured information since it's a PDA. Does your team know which seeds and the PUMP_PROGRAM to use to generate it?

akegaviar added a commit that referenced this issue Dec 29, 2024
@akegaviar
Copy link
Contributor

hey @aszx29 your question actually got me thinking so I spent my Sunday morning figuring it out 🙂 . Check the readme file in the root directory for the description and what's used for seeds.

TLDR I have implemented this in two /learning-examples scripts:

  • compute_associated_bonding_curve.py — computes the associated bonding curve for a given token address
  • listen_new_direct_full_details.py — the same script as listen_new_direct.py that uses just logsSubscribe but now also prints the computed associatedBondngCurve address

Some time later I'll probably implement this into the main trading script, but as of now you should be fine anyway with these examples.

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

No branches or pull requests

2 participants