In many markets, heterogenous agents make non-contractible investments before bargaining over both who matches with whom and the terms of trade. In static markets, the holdup problem—that is, inefficient investments caused by agents receiving only a fraction of their returns—is ubiquitous....