You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That happens because when logs are truncated in the txn, then the log parser ignores all logs. I will fix it in the future.
However, this would still lead to issues, because the logs are truncated, and you have indeed lost information. There are two good solutions to this.
When you want to get poolPcAmount and poolCoinAmount, compute instead the average of the slot, ignoring null values. I do not recommend first or last values in a slot, or even random, because you might get a value right after a big buy by a mev bot.
If you want to completely filter out mev transactions, what you can generally do is something like filtering out users that swap two times in the same slot. You'll rarely see that coming from real users.
Make a script that fills in the values using the SPL Token substream. You have to do some calculation to get the correct pool vault amount (it's not just the balance of the token account) but not that hard. This works fine if you're storing both values in a database, and not doing things in real time.
Interestingly, the log for this transaction is not truncated on solana.fm. It seems there’s a configuration in the RPC to increase the log limit, but it looks like StreamingFast is using an RPC with a lower limit.
For some transactions,
poolPcAmount
andpoolCoinAmount
are missing in the result. For instance, consider this transaction: https://solscan.io/tx/3TN2k6VnthN6hqzMfZFT3irQKjuUYBTbjKaxfYNceszRV9GWN2z5HydW5mHyTyro9omBguEwWESxWZfJqZ2FV5MEWhen manually decoding the ray_log, both values can be retrieved, which indicates a potential issue with the indexing logic for such transactions.
The text was updated successfully, but these errors were encountered: