DryShips ended a controversial fund-raising deal with Kalani Investments and agreed to take George Economou’s stake in pools player Heidmar.

The announcement ends an arrangement that could have seen DryShips raise up to $226m through sales to the Marc Bistricer-backed investor and that has drawn three separate shareholder lawsuits. Those lawsuits have alleged that common shareholders lost nearly all the value of their investment in DryShips.