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

Account data anomaly #35

Open
winktool opened this issue Jul 23, 2024 · 3 comments
Open

Account data anomaly #35

winktool opened this issue Jul 23, 2024 · 3 comments

Comments

@winktool
Copy link

BondingCurveAccount {
  discriminator: 6966180631402821399n,
  virtualTokenReserves: 1057999999750065n,
  virtualSolReserves: 30425330823n,
  realTokenReserves: 778099999750065n,
  realSolReserves: 425330823n,
  tokenTotalSupply: 1000000000000000n,
  complete: false
}

Sometimes, when you continuously request the data from the bondingCurveAccount, the returned data is abnormal, causing the price calculation to fail. Why does this happen? For example, in this case, there is an obvious anomaly in realSolReserves.

@rckprtr
Copy link
Owner

rckprtr commented Jul 23, 2024

Hmm first glance I dont see whats wrong, looks like there is 0.4 SOL in the real sol reserves? What am I missing?

@winktool
Copy link
Author

realSolReserves should actually have a value much higher than 425330823n, this happens by accident, the next request is back to normal!

@matotubol
Copy link

matotubol commented Jul 26, 2024

Why dont you use virtualSolReserves instead, never had problem calculating the price that way.
Also i think the real sol reserves are right, pumpfun adds 30 sol to the liquidity, i dont think they add that to the real sol reserves?

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

3 participants