How to calculate the Pump.fun slippage %?
Last updated
Last updated
To calculate slippage between the two transactions, we need to gather and analyze the following details for each transaction:
Token Amount Purchased: The number of tokens each wallet bought.
Price Paid Per Token: The price at which the tokens were purchased.
Price Difference: How much did the price change between the two transactions.
For each transaction gather Transaction Data:
Amount of tokens bought.
Total amount paid (in SOL).
Calculate Price Per Token:
For each transaction, calculate the token price.
Find Price Difference:
Determine the difference in price per token between the two transactions.
The result you get is the slippage percentage. (price difference between the two transactions.)
Example:
Wallet A bought 25,912,154 Token GOLDIE for 0.753480602 SOL.
Wallet B was the first next transaction and it bought 25,912,154 Token GOLDIE for 0.792014477 SOL.
The slippage between the two transactions is approximately 5.09%.
This means that between the first and second transactions the price per token increased by 5.09% due to the market impact of the first purchase.
βοΈ6. Frequently Asked Questions