It's a wild deal. The CS shareholders will still get something (in the form of UBS shares, but valued at way less than CS was valued even as of Friday close), but there's a class of CS bonds (Tier 1) that is getting wiped out and getting nothing. Not sure the Swiss regulators got it right on that one, and bank debt markets will be significantly under pressure when markets open Monday, at least in Europe but likely everywhere.
Banking overall is wild, part math, part con, part magic, part alchemy. And I say this as someone that works within a bank. But it's really always a bit of a house of cards, and it can unravel very quickly.