A decentralized exchange (DEX) protocol is the set of smart contracts and rules that operates a decentralized exchange (DEX). The protocol decides how prices are set, how trades are matched or executed, what fees are charged and who receives them, and how people who supply funds are rewarded. Because these rules run as smart contracts on a blockchain, anyone can trade through them without opening an account with a company.
The term is used when the focus is on the underlying system rather than on a website or app. Most DEX protocols follow one of two designs: an automated market maker (AMM), in which traders swap against a liquidity pool priced by a formula, or an on-chain order book that matches buyers and sellers. Several different front ends can connect to the same protocol, and changes to fees or rules are often decided by holders of a governance token.
Ref 1070001145