# Amir Bandeali I DEX Aggregation Is Harder Than You Think I 0x I Pragma San Francisco 2024

- Channel: [ETHGlobal](https://streameth.org/ethglobal)
- Date: 2025-10-09
- Duration: 20:47
- Topics: DEX aggregation, decentralized exchange, 0x Labs, Matcha, Amir Bandeali, crypto routing, permit2, fee-on-transfer tokens, MEV, arbitrage, latency, blockchain security, multi-chain DEX, quote accuracy, Ethereum, token swaps, blockchain scalability, gas efficiency, liquidity pools, decentralized trading
- Watch: https://streameth.org/watch/yt-V68fMr_Qtxg
- YouTube: https://www.youtube.com/watch?v=V68fMr_Qtxg

## Description

Learn why DEX aggregation is significantly more complex than it appears with Amir Bandeali, co-founder of 0x Labs. This talk explores the challenges and innovations in decentralized exchange (DEX) aggregation, including advanced routing algorithms, price accuracy, latency issues, and security risks.

Amir discusses the latest improvements in Matcha and the 0x API V2, highlighting permit2 architecture, efficient support for fee-on-transfer tokens, and strategies for secure, scalable multi-chain DEX integration.

00:00 Intro: Understanding DEX Aggregation Complexity
00:36 About 0x Labs and Matcha Aggregation Platform
01:24 Evolution of 0x Aggregation: Transition to V2
02:02 Overview of the New 0x API V2 Architecture
02:44 Argon: Advanced Routing and Pricing Engine Explained
03:22 Why Optimal Pricing Matters in DEX Aggregation
04:06 Importance of Aggregation on High-Cost and Low-Cost Chains
04:36 Complex Routing Examples on Matcha
06:32 Challenges with Routing Complexity: Latency Issues
07:10 Hidden Problem: Quote Accuracy in DEX Aggregation
07:46 Why Low Latency Is Crucial for Trading Performance
09:03 Exploring Quote Inaccuracies and False Positives
10:17 The Problem with Intent-Based DEXs and Indicative Quotes
11:27 Risks of Arbitrage and MEV on Executable Quotes
12:43 Enhancing Quote Accuracy through Advanced Simulation
13:26 Coverage and Security Challenges in Multi-chain Environments
14:41 Why Traditional Upgradable Architectures Fail in DEX Aggregation
15:20 Rapid and Secure Upgrades with 0x API V2
16:32 New Security Model: Permit2 Architecture Explained
17:47 Allowance Holder Smart Contract for Enhanced Security
18:28 Support for Meme Coins and Fee-on-Transfer Tokens
19:09 Streamlined Fee Collection in Stablecoins or Preferred Tokens
19:44 Accurate Gas Estimates and Quote Validation Improvements
20:23 Final Advice: Why Not to Roll Your Own DEX Aggregator

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

🇺🇸 *Pragma San Francisco*
Pragma San Francisco 2024 was a special gathering of founders and builders that took place October 16th and 17th at The Contemporary Jewish Museum in San Francisco, CA.  Pragma San Francisco 2024 was an opportunity discuss the future of web3 and reflect on the past. Watch the full Pragma San Francisco playlist here: https://youtube.com/playlist?list=PLXzKMXK2aHh4LcwDpGf_itZrAu7XRNb07&si=3x3y9J3avgNTITUe

ETHGlobal's Pragma series takes place in cities around the world, and is designed to be a different kind of event. Pragma is a one-stage conference with founders-only on stage, bringing together a small group of curated attendees and speakers to discuss the future of web3 and reflect on the past. 

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

✅ *Follow Amir Bandeali*
X: https://x.com/abandeali1

✅ *Follow 0x*
X: https://x.com/0xproject

✅ *Follow ETHGlobal*
X: https://x.com/ETHGlobal​
Warpcast: https://warpcast.com/ethglobal
Website: https://ethglobal.com
YouTube: https://www.youtube.com/c/ETHGlobal 

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

_Are you interested in Ethereum development and entrepreneurship?_
👉 Sign up for the next ETHGlobal event: https://ethglobal.com/events
🎁 Get exclusive access and perks with ETHGlobal Plus! https://ethglobal.com/plus
📣 Want us to throw an event in your city? Tell us where! https://ethglobal.com/city

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
