DEX 오더북 애그리게이션 (DEX Order Book Aggregation)

여러 탈중앙화 거래소(DEX)의 유동성 데이터를 하나의 인터페이스로 모아 최적의 가격과 최소의 슬리피지를 제공하는 기술.

애그리게이션은 새로운 유동성을 만들어내는 것이 아니라 기존 유동성에 대한 접근을 최적화할 뿐입니다. 단일 AMM에서 대규모 거래 시 발생하는 엄청난 슬리피지를 막아주기 때문에 기관 투자자나 '고래'들에게 필수적입니다.

        graph LR
  Center["DEX 오더북 애그리게이션 (DEX Order Book Aggregation)"]:::main
  Rel_decentralized_derivatives_pricing_models["decentralized-derivatives-pricing-models"]:::related -.-> Center
  click Rel_decentralized_derivatives_pricing_models "/terms/decentralized-derivatives-pricing-models"
  Rel_distributed_transactions["distributed-transactions"]:::related -.-> Center
  click Rel_distributed_transactions "/terms/distributed-transactions"
  Rel_decentralized_exchange_dex["decentralized-exchange-dex"]:::related -.-> Center
  click Rel_decentralized_exchange_dex "/terms/decentralized-exchange-dex"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 5살도 이해할 수 있게 설명

한 과일 가게에서 사과 100개를 한 번에 사려고 하면 주인이 가격을 올릴 것입니다(슬리피지). [DEX](/ko/terms/dex) 애그리게이터는 동네의 모든 과일 가게를 동시에 확인하는 심부름꾼과 같습니다. A가게에서 30개, B가게에서 70개를 사서, 가격을 올리지 않고 가장 저렴한 평균 가격으로 사과를 구해줍니다.

🤓 Expert Deep Dive

핵심 기술은 SOR 알고리즘으로, 토큰 가격, 유동성, 가스비를 고려하여 최적의 경로를 찾는 그래프 이론 최적화 문제를 해결합니다. 가장 큰 어려움은 AMM의 수학적 곡선(x * y = k)과 CLOB의 개별 호가 데이터를 비교할 수 있도록 정규화하는 것입니다. 또한 애그리게이터의 경로는 멤풀(mempool)에 공개되므로 샌드위치 공격(MEV)의 주요 표적이 됩니다. 이를 막기 위해 플래시봇(Flashbots)과 같은 프라이빗 RPC가 자주 사용됩니다.

❓ 자주 묻는 질문

What is the difference between a DEX and a DEX Aggregator?

A DEX (like Uniswap) is a single marketplace with its own liquidity. A DEX Aggregator (like 1inch) is a search engine that checks prices across all DEXs to find you the best deal.

Why do aggregators split trades?

If you make a very large trade on a single exchange, you deplete its liquidity and get a worse price (slippage). Splitting the trade across multiple exchanges minimizes this effect.

Do DEX Aggregators charge extra fees?

Most major aggregators do not charge an extra fee on top of the trade, but they do require slightly more gas to execute because the smart contract has to interact with multiple exchanges at once.

📚 출처