On moral hazard in general equilibrium theory