Tech Talk: Ghost (Chris Chang)
By breakpoint-25
Published on 2025-12-12
Chris Chang from Ghost reveals how proprietary automated market makers dominate 90% of Solana's aggregated swap volume and explains the techniques to reverse engineer their closed-source strategies.
Proprietary automated market makers (PropAMMs) now control a staggering 90% of aggregated swap volume on Solana, yet most users have no idea how these powerful trading engines actually work. At Breakpoint 2025, Chris Chang, co-founder of Ghost (the team behind Sandwiched.me, Solana's metadata hub), pulled back the curtain on these mysterious liquidity providers, revealing their inner mechanics and showing developers how to reverse engineer their closed-source strategies.
Summary
PropAMMs represent a fascinating evolution in decentralized finance infrastructure. While they appear to users as just another automated market maker, they function more like traditional on-chain market makers with sophisticated, actively managed quoting logic. Unlike open-source AMMs where anyone can inspect the code, PropAMMs operate with private strategies and pricing curves, with operators dynamically managing inventory and quotes without accepting external deposits.
The dominance of PropAMMs stems from their competitive advantages: permissionless swapping, extremely tight quotes, low gas costs, and lightning-fast reaction times. Chang noted that typically only two to four PropAMMs dominate the market at any given time, though the competitive landscape can shift rapidly. His team at Ghost became interested in these systems approximately nine months ago and has since developed simulation tools and visualizers available on their Sandwiched.me platform.
What makes PropAMMs particularly intriguing—and potentially concerning—is their closed-source nature. They don't provide decoded or open core interfaces, meaning the only way to see output at any given time is to actually execute a swap or run a simulation. Chang's presentation aimed to democratize this knowledge, arguing that while obfuscated sources raise the technical bar, they shouldn't be impossible to understand.
The presentation also explored the ongoing battle between PropAMMs and "toxic flow"—essentially arbitrage bots that exploit price discrepancies. Chang revealed that atomic arbitrage operations account for 5-10% of atomic arbitrage revenue, and PropAMMs have developed sophisticated countermeasures, including applying different penalty spreads based on which aggregator or router program initiated the swap.
Key Points:
How PropAMMs Structure Their Pricing
Chang walked through the architecture of a typical PropAMM, specifically referencing Screen File as an example. The system operates on multiple layers of protection and pricing mechanics. At the foundation is inventory control, which keeps reserves at a target level, paired with flow control that limits how much can be traded at any given price tier per slot.
The pricing engine uses a sophisticated four-layer approach. Layer one implements stale oracle protection—if the quoted price diverges too far from the oracle reference, the system simply refuses to quote. Layer two adjusts prices based on current reserves versus desired reserves, creating dynamic pricing based on inventory levels. Layer three penalizes quotes as oracle data becomes increasingly stale, ensuring traders pay more during periods of price uncertainty. Finally, layer four handles execution across up to 10 separate liquidity "lungs," each functioning as a distinct tranche with its own spread and capacity.
The Lung-Based Liquidity System
Perhaps the most innovative aspect of PropAMM architecture is the lung-based execution model. Each PropAMM maintains 10 lungs per trading direction, with each lung having its own capacity cap, meters, and spread measured in parts per million (PPM). When a trade comes in, the system fills from the base tranche first, then walks down the ladder to subsequent lungs as needed.
This creates a piecewise pricing function rather than a smooth curve, with explicit state tracked per lung limit. The system includes built-in backfill logic: after being consumed, a lung refills to 50% capacity on the next slot, then fully refills on the following slot if not consumed again. The final output for any trade is calculated as the sum of fills across all 10 lungs, with the system scanning from zero to nine and aggregating partial fills from each tranche.
Reverse Engineering Methodology
Chang outlined a three-pillar approach to understanding PropAMMs: simulation, tracing, and static analysis. The simulation pillar involves executing transactions against known state to answer the question "what would this output given this input mount on this state?" The team uses a modified BPF fork that instruments the virtual machine, logging a structured trace of every meaningful action including function calls, returns, and read/write operations.
From these traces, developers can rebuild code summaries showing which functions were invoked, how often, and how each function interacts with stack, heap, and account data. The static analysis pillar uses Binary Ninja with specialized plugins to decompile Solana programs. By topologically sorting code trees, AI agents can start from the outputs, translate them first, and work backward through the logic. Chang emphasized creating repeatable pipelines where every swap simulation becomes a "case file" for AI agents to analyze.
The Toxic Flow Arms Race
PropAMMs are engaged in constant warfare against toxic flow—arbitrage activity that exploits their pricing. Chang revealed that PropAMMs implement instruction introspection to examine full transactions, including who caused the swap, what swaps are present, and their ordering within the transaction. Many PropAMMs apply different pricing based on which aggregator program invoked them.
Specific examples include one PropAMM that adds 25 basis points penalty if another PropAMM swap appears in the same transaction, while another adds 3.6 basis points for certain router types. The arbitrage community has responded by evolving from single transactions to multiple transaction strategies, with multi-transaction atomic arbitrage now representing the majority of such activity. This cat-and-mouse game continues to evolve, with both sides developing increasingly sophisticated tactics.
Facts + Figures
- PropAMMs represent 90% of aggregated swap volume on Solana
- Typically only 2-4 PropAMMs dominate the market at any given time
- Atomic arbitrage operations generate 5-10% of atomic arbitrage revenue
- PropAMMs use up to 10 liquidity "lungs" per trading direction
- One PropAMM applies a 25 basis point penalty when detecting another PropAMM in the same transaction
- Another PropAMM applies a 3.6 basis point penalty for certain router types
- Lungs refill to 50% capacity in the first slot after consumption
- Lungs fully refill by the second slot if not consumed again
- Ghost team has been researching PropAMMs for approximately nine months
- Pricing spreads are measured in parts per million (PPM)
- Multi-transaction atomic arbitrage has grown to become the majority of arbitrage activity
- Ghost will soon release unique data executing unchanged transaction swaps between PropAMMs
Top quotes
- "PropAMMs now represent 90% of aggregated swap volume. They are a hot topic on Solana."
- "They behave more like an on-chain market makers with active coding logic. They're close source with private strategies and curves."
- "Closed and obfuscated sources can raise the bar, but they shouldn't be impossible to read."
- "Think about each lung as a separate tranche of liquidity with its own spread."
- "This is why quoting is not smooth—it's actually piecewise with explicit state per lung limit."
- "Reacting to toxic flow is one of the top priorities for PropAMMs."
- "Many PropAMMs use the instruction system to inspect full transactions—who caused me and what the swap present and ordering."
- "The arbitrage bot that faces full discrimination—they start from one transaction to multiple transactions."
- "For every single swap simulation, it becomes a case file for your AI agent to run through."
Questions Answered
What is a PropAMM and how is it different from a regular AMM?
A PropAMM (Proprietary Automated Market Maker) looks like a standard AMM from a user's perspective, but operates fundamentally differently under the hood. While traditional AMMs use open-source code with publicly viewable curves and strategies, PropAMMs use closed-source private strategies and pricing curves. They function more like on-chain market makers with actively managed quoting logic, where operators dynamically manage inventory and quotes. PropAMMs don't accept external deposits like traditional AMMs, and typically don't have their own front-end interfaces—users interact with them through aggregators instead.
Why do aggregators prefer PropAMMs?
Aggregators route significant volume through PropAMMs because they consistently offer the best prices. PropAMMs quote very tightly, meaning the spread between buy and sell prices is minimal. They also have very low gas costs, making trades cheaper to execute. Additionally, PropAMMs can react to market conditions extremely quickly, adjusting their quotes in response to price movements. This combination of tight spreads, low costs, and fast execution makes PropAMMs highly attractive for aggregators trying to find the best prices for their users.
How do PropAMMs protect themselves from being exploited?
PropAMMs implement multiple layers of protection. At the most basic level, they use oracle protection—if their quoted price diverges too far from reference oracle prices, they simply refuse to trade. They also adjust prices based on current inventory versus target inventory, charging more when reserves are depleted. PropAMMs penalize trades when oracle data becomes stale, reflecting increased uncertainty. Perhaps most sophisticated is their instruction introspection capability, where they examine the full transaction context to identify potential arbitrage activity and apply penalty spreads accordingly.
What are liquidity "lungs" in PropAMM architecture?
Lungs are a clever mechanism PropAMMs use to manage liquidity in tranches. Each PropAMM maintains 10 lungs per trading direction, with each lung representing a separate pool of liquidity at a specific spread level. When a trade comes in, the system fills from the base lung first, then moves to subsequent lungs as capacity is exhausted. Each lung has its own capacity cap and spread in parts per million. This creates piecewise pricing rather than a smooth curve, and includes automatic backfill logic where lungs regenerate capacity over time after being consumed.
Can closed-source PropAMMs be reverse engineered?
Yes, according to Chris Chang, closed-source PropAMMs can be understood through systematic reverse engineering. The approach involves three pillars: simulation (executing transactions against known state), tracing (using instrumented VMs to log structured traces of all operations), and static analysis (using decompilers like Binary Ninja). By combining these techniques with AI agents that can analyze the resulting data, developers can rebuild an understanding of how PropAMMs calculate their outputs. Chang argues that while obfuscation raises the technical bar, it shouldn't make understanding impossible.
What is toxic flow and why do PropAMMs care about it?
Toxic flow refers to trading activity that exploits PropAMMs, primarily arbitrage bots that extract value by trading against PropAMM quotes when they're slightly off-market. This activity accounts for 5-10% of atomic arbitrage revenue. PropAMMs care deeply about toxic flow because it represents a direct cost to their operations—every successful arbitrage trade means the PropAMM traded at a suboptimal price. In response, PropAMMs have developed sophisticated detection mechanisms that examine transaction context and apply penalty spreads when they suspect arbitrage activity, leading to an ongoing arms race between PropAMMs and arbitrageurs.
On this page
- Summary
- Key Points:
- Facts + Figures
- Top quotes
-
Questions Answered
- What is a PropAMM and how is it different from a regular AMM?
- Why do aggregators prefer PropAMMs?
- How do PropAMMs protect themselves from being exploited?
- What are liquidity "lungs" in PropAMM architecture?
- Can closed-source PropAMMs be reverse engineered?
- What is toxic flow and why do PropAMMs care about it?
Related Content
PropAMMs and WET w/Kevin at Humidifi
Kevin from Humidify reveals how proprietary market makers dominate Solana DEX volume, optimize oracle updates, and plan to make Solana the home of day-one token trading
Breakpoint 2023: Fuzzing, Formal Methods, and the State of Solana Security
An exploration of how fuzzing and formal verification techniques contribute to the security of the Solana blockchain.
Tech Talk: Reilabs
Reilabs unveils Sunspot, a revolutionary toolchain that makes zero-knowledge cryptography practical and affordable on Solana
Crypto Is At An Inflection Point | Ryan Connor
Explore the future of Solana with Ryan Connor as he discusses meme coins, DEX volume growth, and the potential for deep tech projects in the ecosystem.
Retaining the Next Billion Users with Phantom at Breakpoint 2023
Phantom's latest initiatives to boost crypto user retention and smooth the user experience.
Breakpoint 2024: Debate: Solana Is More Future-Proof Than Ethereum
A heated debate between Santiago from SRS and Vichol from Electric Capital on whether Solana or Ethereum is more future-proof
Breakpoint 2024: Debate: The Solana Foundation Should Be Dissolved
A thought-provoking debate on the future of the Solana Foundation at Breakpoint 2024
The State Of Solana With Matthew Sigel
Explore the latest developments in Solana's ecosystem, Van Eck's new On-Chain Economy ETF, and the impact of regulatory changes on the crypto market with industry expert Matthew Sigel.
Validated | How Justin Bons Changed His Thesis About Solana
Crypto researcher Justin Bons discusses his evolving perspective on Solana, critiques of Ethereum's L2 scaling approach, and the importance of adaptable thinking in blockchain analysis.
Solana Ecosystem Update: Jito Labs, L2s, and Meme Coins
Explore the latest developments in Solana's ecosystem, including Jito Labs' decision to suspend their mempool, the impact on users, and the ongoing evolution of L2 scaling solutions.
Breakpoint 2023: A World in a Grain of Sand: State Compression on Solana
Exploring the possibilities of blockchain scalability with state compression technology on Solana.
Breakpoint 2023: Scaling NFT Compression to Production (and beyond)
Nicolas Penny discusses Helius' journey in scaling NFT compression to production, highlighting the challenges and solutions faced along the way.
Breakpoint 2023: Tokenomics, Market Making, & Strategies to Optimize Token Performance
Shane Molidor discusses strategies for optimal token performance within the cryptocurrency sector.
How HumidiFi Became Solana's Largest Prop AMM
Kevin from HumidiFi reveals how proprietary AMMs are reshaping Solana's trading landscape, achieving massive volume with minimal capital while pushing price discovery on-chain.
Solana DeFi Summer Is Coming | Sang Kim
Fragmetric co-founder Sang Kim explains how Solana DATs could drive restaking adoption, generate sustainable DeFi yields, and why he's more bullish on Solana restaking than Eigenlayer.
- Borrow / Lend
- Liquidity Pools
- Token Swaps & Trading
- Yield Farming
- Solana Explained
- Is Solana an Ethereum killer?
- Transaction Fees
- Why Is Solana Going Up?
- Solana's History
- What makes Solana Unique?
- What Is Solana?
- How To Buy Solana
- Solana's Best Projects: Dapps, Defi & NFTs
- Choosing The Best Solana Validator
- Staking Rewards Calculator
- Liquid Staking
- Can You Mine Solana?
- Solana Staking Pools
- Stake with us
- How To Unstake Solana
- How validators earn
- Best Wallets For Solana

