Larry M. Siegel appeals the district court’s grant of summary judgment in favor of Federal Home Loan Mortgage Corp. (“Freddie Mac”) in his tort and breach of contract action regarding foreclosures upon two properties referred to as the “Windbell property” and the “Dalton Place property.” Siegel claims that the district court erred when it concluded that this action is barred by res judicata, and when it awarded Freddie Mac attorney’s fees incurred in defending the action. 1 We affirm both the district court’s grant of summary judgment and its award of attorney’s fees.
BACKGROUND
On November 22, 1989, Siegel and Gerber, his partner, executed and delivered a Multifamily note (the Windbell note) in which they promised to pay the J.I. Kislak Mortgage Corporation (Kislak) the principal sum of $840,000 in monthly installments. The note was secured by a Deed of Trust, Assignment of Rents and Security Agreements, and by a Collateral Assignment of Leases. On November 27,1989, Siegel and Gerber executed and delivered another Multifamily note (the Dalton Place note) in which they promised to pay Kislak the principal sum of $900,000. That note was also secured by a Multifamily Deed of Trust, Assignment of Rents and Security Agreements, and a Collateral Assignment of Leases. The rider to the Dalton Place deed of trust provided that the borrower could sell or transfer his interest in the property without acceleration of the entire debt provided that “the transferee’s creditworthiness and management ability are satisfactory to Lender and the transferee has executed ... a written assumption agreement.” Kislak subsequently sold and assigned the notes and deeds of trust to Freddie Mac.
Siegel and Gerber experienced constant financial difficulty in maintaining the Dalton Place property. By the end of 1991, they attempted to sell the property. Two parties submitted offers — Andrew Hansen and Cunningham Capital Corporation. Freddie Mac determined that Hansen was an unacceptable buyer because of his lack of managerial experience, the condition of his other properties, and his limited financial resources. The second offer from Cunningham Capital Corpora *528 tion was withdrawn before Freddie Mac acted on it.
In December 1992, Siegel and Gerber defaulted on their obligations under the Wind-bell loan, and Freddie Mac foreclosed on that property. Seeking a deficiency judgment, Freddie Mae filed an action in federal district court in the Northern District of Texas. Pri- or to trial, Siegel declared bankruptcy. Sie-gel and Gerber also defaulted on the loan on the Dalton Place property.
Freddie Mac filed two proofs of claim against Siegel in the bankruptcy proceeding. One related to the Windbell property and the other to the Dalton Place property. Siegel did not file objections to those proofs of claim. Nor did the bankruptcy trustee. In March 1994, the bankruptcy court granted Freddie Mac relief from the stay so that it could foreclose on the Dalton Place property. On June 10, 1994, Siegel was discharged from bankruptcy, and that matter was closed on June 30, 1994. On August 2, 1994, Freddie Mac foreclosed on the Dalton Place property.
However, in April of 1994, Siegel and Gerber had already brought this action in the Superior Court of the State of California for the County of Los Angeles. Freddie Mac removed the action to the Federal District Court for the Central District of California in October, 1994. Freddie Mae then moved for summary judgment against Siegel on all claims because, it said, Siegel’s action was barred by the res judicata effect of the bankruptcy proceeding. 2 The district court granted Freddie Mac’s motion. After the district court granted the motion, Freddie Mac moved to recover attorney’s fees incurred in defending against Siegel’s claims. The district court granted that motion and denied Siegel’s subsequent motion for reconsideration. Siegel appealed.
JURISDICTION AND STANDARD OF REVIEW
The district court had jurisdiction pursuant to 12 U.S.C. § 1452(f). We have jurisdiction pursuant to 28 U.S.C. § 1291.
We review the district court’s grant of summary judgment de novo.
See Trustees of Cal. State Univ. v. Riley,
DISCUSSION
A. Res Judicata
When Freddie Mac filed its claims in bankruptcy either Siegel or the trustee could have raised objections. They did not. Instead, in this separate case Siegel attempted to attack Freddie Mac’s right to foreclose and its other actions under the contract. The district court declared that he was barred by res judicata. He dubs that error; we disagree.
The “doctrine of res judicata bars a party from bringing a claim if a court of competent jurisdiction has rendered a final judgment on the merits of the claim in a previous action involving the same parties or their privies.”
Robertson v. Isomedix, Inc. (In re Intl. Nutronics),
In
United States v. Coast Wineries,
In
In re Intl. Nutronics,
(1) whether rights or interests established in the prior judgment would be destroyed or impaired by prosecution of the second action; (2) whether substantially the same evidence is presented in the two actions; (3) whether the two suits involve infringement of the same right; and (4) whether the two suits arise out of the same transactional nucleus of facts.
Id. We see no reason not to apply that test here.
Application of the test indicates that the district court correctly concluded that Sie-gel’s claims were barred by res judicata. Freddie Mac filed two proofs of claim (Wind-bell and Dalton Place) in Siegel’s bankruptcy proceeding. No objection was filed to the claims in the bankruptcy action. 3 Siegel’s present suit against Freddie Mac in contract and tort states a variety of causes of action all of which are premised on Freddie Mac’s failure to finance repair projects on the Windbell and Dalton Place properties, and its failure to approve the sale and transfer of the Dalton Place property. The gravamen is that Freddie Mac violated its duties under the notes and deeds of trust and, among other things, should not have been able to proceed against Siegel due to its own defaults and wrongdoing. Clearly, Freddie Mac’s right to recover on its proofs of claim in the bankruptcy court could have been attacked on that basis. Just as clearly, its rights established in the bankruptcy would be affected by resolution of the present action. Similarly, the present suit and the proofs of claim stem from the same nucleus of facts, and involve similar evidence, i.e., the loan documentation and the surrounding circumstances. Again, the interests at stake in both actions involve Freddie Mac’s right to recovery under the loan agreements. As such, the district court correctly concluded that res judicata bars Siegel’s claims in the present action.
Siegel, however, argues that the proofs of claim filed by Freddie Mac are not final judgments giving rise to res judicata. Surely the claims themselves are not, but his argument ignores the fact that we have held that a bankruptcy court’s allowance or disal-lowance of a claim is a final judgment.
See Coast Wineries,
We recognize that in the eases we have cited there has been an actual separate order of some kind regarding the claim in question. We have not found significant authority addressing the necessity for a separate order before res judicata can attach. One case has indicated that “the filing and subsequent allowance of a proof of claim is a final judgment” even if there is no formal order, but that ease has been reversed, albeit on other grounds.
DePaolo v. United States (In re DePaolo),
“A claim ..., proof of which is filed under section 501 of this title [Title 11], is
deemed allowed,
unless a party in interest ... objects.” 11 U.S.C. § 502(a) (emphasis added). If there is an objection, the court must hold a hearing and then it “shall
allow
” the claim to the extent proper. 11 U.S.C. § 502(b) (emphasis added). Of course, if the court formally actually allows the claim, there can be little doubt about the ultimate res judicata effect of that allowance. But it is equally clear that when a claim is “deemed allowed” it has the same effect. Consider: what else can “deemed allowed” mean? It must mean deemed allowed by the court. In other words, it is deemed that the court has acted on the claim and ordered allowance. Congress has relieved the court of the task of actually endorsing its allowance of the claim on that document or on a separate form of order. It has saved the court from that burdensome and almost ministerial task when no interested party demands it. It would be most peculiar if the effect was that uncontested and allowed claims had less dignity for res judicata purposes than a claim which at least one party in interest thought was invalid or contestable in whole or in part. We see no reason to embrace that rather peculiar result. Rather, we see § 502(a) as a recognition of the fact that people can raise objections and litigate them, if they see something wrong with a claim, but if they do not, the claim will be treated in all respects as a claim allowed by the court itself. In short, the validity of the claim has been determined on the merits, and attacks upon it that “could have been asserted” cannot be raised in later proceedings.
In re Intl. Nutronics,
We do, of course, recognize that the Fourth Circuit has expressed doubt about this form of analysis.
See County Fuel Co., Inc. v. Equitable Bank Corp.,
But, Siegel says, he should not be penalized by the bankruptcy trustee’s failure to pursue an action against Freddie Mac. This argument is without merit, and misunderstands the nature of the bankruptcy proceeding. Again, any party in interest can object.
See
11 U.S.C. § 502(a). Athough the trustee in Siegel’s bankruptcy could have objected to Freddie Mae’s proofs of claim, Siegel could have objected as well.
See Lawrence v. Steinford Holding B.V. (In re Dominelli),
B. Award of Attorney’s Fees to Freddie Mac
Despite the fact that Freddie Mac’s rights under the notes and deeds of trust had been decided in the bankruptcy court and Freddie Mac’s claims had been discharged there, Siegel chose to sue on the theory that Freddie Mae had breached the deeds of trust’s promises. Unfortunately for him, the deeds of trust provide for attorney’s fees if the lender is pursuing its rights under them. There is no dispute that the provision was valid under state law and would apply here if the bankruptcy proceedings did not, somehow, affect it. For purposes of this action, it was not affected by those proceedings.
In the first place, the mere fact that Siegel obtained a bankruptcy discharge did not eliminate the provision. That is, it cannot be said that the whole contract merged into that judgment. As the Supreme Court pointed out in
Johnson v. Home State Bank,
*532
But, Siegel argues, the bankruptcy court’s June 10, 1994, discharge of his obligations must have included Freddie Mac’s claim for attorney fees. Under 11 U.S.C. § 727(b), a debtor is discharged “from all debts that arose before the date of the order for relief under [Chapter 7].” Thus, whether Freddie Mae’s claim for attorney’s fees was discharged in bankruptcy will depend on when the attorney’s fee debt arose.
See California Dep’t of Health Servs. v. Jensen (In re Jensen),
The question of when a debt arises under the bankruptcy code is governed by federal law.
See In re Jensen,
Pursuant to section 101(5)(A), a claim is a “right to payment, whether or not such right is reduced to judgment, liquidated, unliqui-dated, fixed,
contingent,
matured, unma-tured, disputed, undisputed, legal, equitable, secured or unsecured.” (emphasis added). “This ‘broadest possible definition’ of ‘claim’ is designed to ensure that ‘all legal obligations of the debtor,
no matter how remote or contingent,
will be able to be dealt with in the bankruptcy case.’”
In re Jensen,
A contingent claim is “ ‘one which the debtor will be called upon to pay only upon the occurrence or happening of an extrinsic event which will trigger the liability of the debtor to the alleged creditor.’ ”
Fostvedt v. Dow (In re Fostvedt),
In
In re THC,
Those cases did not specifically deal with attorney’s fees provisions in a contract, but there is nothing about attorney’s fees provisions that would render them unprovable. We have held as much.
See, e.g., Highlands Ins. Co. v. Bozzo (In re Bozzo),
This is a case where the debtor, Siegel, had been freed from the untoward effects of contracts he had entered into. Freddie Mac could not pursue him further, nor could anyone else. He, however, chose to return to the fray and to use the contract as a weapon. It is perfectly just, and within the purposes of bankruptcy, to allow the same weapon to be used against him.
Other courts, which have considered the issue have reached the same conclusion. Thus, in
Shure v. Vermont (In re SureSnap),
The confirmation of Sure-Snap’s Chapter 11 plan discharged its pre-confirmation liabilities under the Agreement. The attorney fees Bradford seeks were incurred by Bradford in defending a post-confirmation appeal initiated by Sure-Snap. Sure-Snap voluntarily continued to litigate the validity of the Agreement after confirmation of its Chapter 11 plan. Bradford had no choice but to defend. By choosing to appeal the validity of the Agreement after confirmation, Sure-Snap did so at the risk of incurring post-confirmation costs involved in its acts. “[Bjankruptcy was intended to protect the debtor from the continuing costs of pre-bankruptcy acts but not to insulate the debtor from the costs of post-bankruptcy acts.”
Id.
at 1018 (citation omitted);
see also Irmas Family Trust v. Madden (In re Madden),
Freddie Mac is also entitled to attorney’s fees on appeal pursuant to the underlying deeds of trust. We will remand to the district court for further proceedings on this issue. See 9th Cir. Rule 39-1.8.
CONCLUSION
Not entirely unlike Dr. Pangloss, 4 Siegel thought that for him this was the best of all possible worlds. He thought that he could use bankruptcy to discharge all of his obligations under his contracts with Freddie Mac and still personally retain all of his rights arising out of those contracts. That picture of the world was a mere eidolon. Any claims Siegel might have had against Freddie Mac came to an end when its claim in Siegel’s bankruptcy went unchallenged and became recognized. And any right to avoid the attorney’s fees provision of his contract fell short of protecting him when he voluntarily undertook this post-bankruptcy action against Freddie Mac.
AFFIRMED and REMANDED.
Notes
. Selwyn Gerber also appealed. We dispose of the issues raised by him in a separate memorandum disposition,
. It asserted other grounds also, which we need not consider here.
. Similarly, no objection was filed to Freddie Mac's motion for relief from the automatic stay so that it could foreclose on the Dalton Place property.
. See Voltaire, Candide (W.W. Norton & Co. 1966).
