GMGN Co-Creation Workshop: How to Become a Qualified P-Soldier
Original Title: "GMGN's Junior P Classroom - Gas, Gas Fee, Slippage, MEV"
Original Author: Haze, Co-founder of gmgn
During on-chain transactions, many fundamental concepts may determine the success or failure of your transaction.
Today, transaction tools aim to reduce everyone's operating threshold. Most people lack an understanding of on-chain parameters. In this article, we’ll help you get acquainted with them.
Some Basic Concepts:
· Gas Fee (GAS)
· Gas = Blockchain transaction fee
· Pays miners / validators to process your transaction
· High Gas → Transaction prioritization for packaging
· Low Gas → Risk of being stuck in the queue
Payment Methods:
· SOL Transaction → Pay in SOL
· ETH Transaction → Pay in ETH
· Different chains have different Gas mechanisms
Slippage:
Slippage = Deviation between the expected price and the actual execution price
Causes of Slippage:
· Insufficient market depth → Large order size, but pool liquidity is inadequate
· Transaction delay → Price fluctuation from submission to execution
· MEV Sandwich Attack → Bots manipulate prices for arbitrage
Example:
You use 1000 USDC to buy ETH, expecting to transact at 2000 USDC/ETH, which should give you 0.5 ETH.
But the execution price becomes 2050 USDC/ETH, and you end up receiving only 0.4878 ETH. Your slippage is 2.5%.
If you set your slippage to 0.1%, the transaction will fail directly due to insufficient slippage.
How does a MEV Sandwich Attack target you?
Sandwich Attack Principle:
· Front-running → Bots buy ahead of you, driving up the price
· Your trade execution → You only get filled at a higher price, suffering from slippage
· Back-running → Bots immediately sell for profit
Impact:
· Your buy price is pushed up, increasing transaction costs
· Bots exploit your slippage, making you buy high and sell low
Solana vs Eth on Sandwich Attacks
· ETH → Precise sandwich insertion
· SOL → MEV bots batch-submit orders, casting a wide net for sandwiches
How to Prevent Sandwich Attacks?
Enable MEV protection to reduce the likelihood of transaction snooping
· Priority Fee, also known as Bribe
· Priority Fee = Extra tip to miners / validators to expedite transaction
Components:
· Base Fee → Network base fee (Solana has a fixed fee, ETH has a dynamic fee)
· Priority Fee → Extra fee you pay to increase transaction priority
Purpose:
Enhance transaction packaging priority for faster on-chain execution. In MEV competition, transactions with higher priority fees are executed first.
Summary
On-chain transaction Gas Fee + Slippage (including your set slippage tolerance and the impact of your buy amount on the pool) + MEV sandwich collectively determine the final transaction cost.
Real-World Example:
Many people are apeing into dog coins on Solana with a 50% slippage + MEV protection. Is this safe?
· Most of the Sniping transactions are AMM trades
· You buy a token with 1000 USDC, 50% slippage, which allows for execution at an extreme price
· MEV bots front-run your buy, driving up the price (within your slippage tolerance)
· Your trade executes at a higher price, receiving less of the token than expected
· MEV bots immediately sell to arbitrage your slippage loss.
If MEV Protection is in place:
· Trades won't be precisely sandwiched (bots can't sandwich your transactions)
· If the pool has sufficient liquidity and the buy amount doesn't impact the price, the trade proceeds normally
If MEV Protection is not in place:
· Solana lacks a private Mempool, MEV bots can still see your transaction and sandwich you
If your amount impacts the pool:
· High slippage = permits extreme price changes, market fluctuations themselves may lead to losses
· Low liquidity pool = higher trade impact, prone to becoming a sandwich
How to Avoid being Sandwiched?
· Avoid using high slippage, set slippage range sensibly
· If using AMM, enable MEV protection to reduce monitoring risk
Is High Slippage the Key to Successful Sniping?
Most sniping transactions do not have such high short-term volatility, and the overflow slippage range does not have an additional success rate effect.
Mostly, it's your gas fee + your trading node + trade routing to pool factors. These factors can continuously improve your transaction success rate. Slippage is just an option in extreme situations. Most of the time, a 10% - 20% slippage is sufficient. This part can be manually adjusted multiple times during sniping to control risks effectively.
For junior traders, it's all about risking small to win big, with a small single purchase amount. A slight adjustment in slippage can help avoid most sandwiching situations.
Conclusion
When the trading venue is an AMM (Raydium), the slippage parameter determines your likelihood of being sandwiched by MEV.
If you set a high slippage tolerance, you need to evaluate:
· Whether the gas fee is high enough to avoid MEV frontrunning
· Whether the buy amount is large enough to make MEV frontrunning profitable
· Whether the liquidity pool is deep enough, or else you might experience maximum slippage
· By using batched small trades + reducing slippage, you can greatly reduce the risk of sandwich attacks and losses from small pools.
How much slippage is acceptable? How is a small trade defined?
This can only be felt through hands-on experience! It's like driving a manual transmission car—practice makes perfect!
You may also like

Ethereum 2029 Strawmap Guide: Ultra-Fast Consensus, Native Privacy, and the "Acceleration Variables" Brought by AI

Altcoin ETF Surge: SOL and XRP Inflows Total $23 Million as Institutions Diversify
Key Takeaways Institutional interest in altcoin ETFs is expanding, with SOL and XRP showing significant inflows on March…

Vitalik Drops Ethereum Endgame Bombshell: ETH USD to $3,000?
Key Takeaways Vitalik Buterin introduces the “Sanctuary Tech” manifesto to address Ethereum’s non-financial limitations. A current lack of…

Exclusive: Yuliya Barabash Predicts the Most Regulated Could Be the Biggest Crypto Winners
Key Takeaways The aftermath of FTX and Celsius collapses has ushered a new regulatory era, reshaping the crypto…

iPhone Crypto Wallets Under Threat from State-Grade Malware
Key Takeaways: The Coruna exploit kit exploits 23 iOS vulnerabilities, threatening iPhone users’ crypto wallets. Initially state-level surveillance,…

Bitcoin Nears Two-Year ‘Make-or-Break’ Resistance: Future Implications
Key Takeaways Bitcoin’s price is approaching key resistance levels around $73,000, observed for the first time since early…

Bitcoin Price Prediction: Analyst Says $220,000 BTC Is Coming — But Only After This Happens
Key Takeaways: Bitcoin may experience a significant drop before the next major rally begins, potentially revisiting the $50,000…

Solana Price Outlook: All Eyes Focused on $95 — Could This Trigger New SOL Highs?
Key Takeaways Solana’s price is approaching a pivotal $95 mark, which may indicate potential support or resistance for…

Advanced AI Predicts Future Prices for XRP, Solana, and Cardano by 2026
Key Takeaways: Claude AI predicts significant price increases for XRP, Solana, and Cardano by the end of 2026.…

Bitcoin Price Prediction: Fed Rate Cut Hints Propel Bitcoin Beyond $72K — Is a Mega Rally Starting?
Key Takeaways Bitcoin surged past the $72,000 mark, ignited by potential Federal Reserve interest rate cuts. The rally…

XRP Price Prediction: Ripple Just Turned to AI to Protect the XRP Ledger — Is This a Security Game-Changer?
Key Takeaways: Ripple is leveraging AI to enhance the security of the XRP Ledger after identifying vulnerabilities. AI…

Institutional Accumulation: US Bitcoin ETFs and MicroStrategy Drive $1.2B in Demand Surge
Key Takeaways: Institutional investments in Bitcoin have surged with US Bitcoin ETFs and MicroStrategy leading the charge, absorbing…

South Korea Tax Service Leaks Seed Phrases, Loses $4.8 Million in Seized Crypto
Key Takeaways The National Tax Service of South Korea inadvertently leaked private keys in a press release, resulting…

Current Crypto Predictions: XRP, Bitcoin, and Ethereum on the Rise
Key Takeaways Despite geopolitical tensions, Bitcoin hits a remarkable $71,500, reflecting market adaptability. Passage of the U.S. CLARITY…

Why is Crypto Rising? Bitcoin Reclaims $71,000 as Market Moves Past Middle East Tensions
Key Takeaways Bitcoin recovers to $71,000 despite Middle East geopolitical tensions, signaling market resilience. Institutional investors played a…

CLARITY Act News: Trump Administration Confronts Banks Over Crypto Access
Key Takeaways President Donald Trump warns banks to stop restricting crypto or face repercussions. The CLARITY Act, which…

Bitcoin Price Prediction: Veteran Trader Warns Final Flush Is Approaching — Is Another Drop Imminent?
Key Takeaways The current market analysis suggests that Bitcoin may experience another significant drop, termed the “final flush,”…

Solana Price Prediction: SOL Just Reached a Critical Level — Is $100 in Sight?
Key Takeaways Solana has bounced back to a crucial price range, reigniting discussions about its potential to reach…
Ethereum 2029 Strawmap Guide: Ultra-Fast Consensus, Native Privacy, and the "Acceleration Variables" Brought by AI
Altcoin ETF Surge: SOL and XRP Inflows Total $23 Million as Institutions Diversify
Key Takeaways Institutional interest in altcoin ETFs is expanding, with SOL and XRP showing significant inflows on March…
Vitalik Drops Ethereum Endgame Bombshell: ETH USD to $3,000?
Key Takeaways Vitalik Buterin introduces the “Sanctuary Tech” manifesto to address Ethereum’s non-financial limitations. A current lack of…
Exclusive: Yuliya Barabash Predicts the Most Regulated Could Be the Biggest Crypto Winners
Key Takeaways The aftermath of FTX and Celsius collapses has ushered a new regulatory era, reshaping the crypto…
iPhone Crypto Wallets Under Threat from State-Grade Malware
Key Takeaways: The Coruna exploit kit exploits 23 iOS vulnerabilities, threatening iPhone users’ crypto wallets. Initially state-level surveillance,…
Bitcoin Nears Two-Year ‘Make-or-Break’ Resistance: Future Implications
Key Takeaways Bitcoin’s price is approaching key resistance levels around $73,000, observed for the first time since early…