Smart contracts are nothing but computer codes to control digital currency/asset transfer stored on the blockchain which also gets verified and executed through a network of computers within the blockchain. The decentralized exchange allows customers to buy and sell cryptocurrencies without relying on a centralized exchange.