The equilibrium allocation of investment capital in the presence of adverse selection and costly state verification