Contract Structure, Risk Sharing and Investment Choice