Mechanics and risks of decentralized exchange Courses