Risk-sharing or risk-taking? Counterparty risk, incentives and margins