Several cryptocurrency exchanges such as Coinbase function as centralized platforms to connect cryptocurrency buyers and sellers. Decentralized exchanges (DEXs) such as MDEX use smart contracts to perform the work of centralized exchanges, with the smart contracts providing pricing for each counterparty at or near prevailing market prices.