The impact of shocks on the macroeconomy under endogenous and exogenous capital controls | Synapse