The Fed helped engineer a fire sale of the firm to JPMorgan Chase ( JPM , Fortune 500 ) , agreeing to put taxpayer funds at risk by guaranteeing $ 29 billion 's worth of potential losses on Bear Stearns ' portfolio .