Text this: Money, barter, and the optimality of legal restrictions.