Smart Contracts and the Cost of Inflexibility