Contract theory is the area of law that deals with contracts.