Liquidity Contracts and Counterparty Resolution