Contract Risk Allocation