JPMorgan Chase is setting aside $6 billion to cover potential litigation as it agrees to buy stricken Wall Street giant Bear Stearns for just $240 million.

Following the announcement Sunday that it is buying the bank for a fraction of its previous value, JPMorgan said it is estimating the cost of the transaction at around $6 billion — taking into account the potential of litigation stemming from the drop in Bear Stearns’ stock value and severance costs.