delivered the Opinion of the Court.
We granted certiorari to review the court of appeals decision in
Andrikopoulos v. Min-nelusa Co.,
I.
The Minnelusa Company (Minnelusa) is a Florida corporation that was formed to finance a speculative investment in a marina located in Fort Meyers, Florida. In 1989, Minnelusa encountered financial difficulties which led one of the corporation’s major creditors to demand personal loan guarantees from each of Minnelusa’s shareholders. When shareholders A.G. Andrikopoulos, George Seifert, and John and Marjorie Dunn (the plaintiffs) refused to give their personal guarantees, Minnelusa offered to buy out their shares.
On February 14, 1990, the plaintiffs and Minnelusa executed a stock repurchase agreement, wherein the plaintiffs agreed to surrender their stock into escrow in exchange for cash and promissory notes. These notes were secured with existing Min-nelusa stock and were personally guaranteed by another Minnelusa shareholder, F.H. Gower, Jr. (Gower). The promissory notes required quarterly payments which would culminate in a balloon payment on January 1, 1995. Once this balloon payment was made, the plaintiffs’ stock would be released from escrow to Minnelusa.
In January of 1993, Minnelusa ceased making payments on the promissory notes. Gower subsequently refused to honor his guarantee. The plaintiffs filed suit in Arapahoe County District Court 1 to collect the unpaid balance due under acceleration clauses contained in the promissory notes. In response, Minnelusa and Gower counterclaimed and asserted, as an affirmative defense, a Florida statute that prohibits, insolvent corporations from repurchasing their own stock (the Florida stock repurchase statute). The counterclaim sought the return of the promissory notes and the recovery of all payments made under the stock repurchase agreement.
The plaintiffs moved for summary judgment, claiming that Minnelusa and Gower did not have standing to raise the Florida stock repurchase statute as a defense. The district court granted the plaintiffs’ motion and awarded them the amount due under the promissory notes as well as their costs and attorney fees. The court of appeals affirmed.
II.
Throughout these proceedings, the parties and the courts below have referred to the issue in this case as whether Minnelusa has standing to assert the Florida stock repurchase statute as an affirmative defense. The term “standing,” however, does not accurately describe the issue before us. As we explained in
People ex rel. Simpson v. Highland Irrigation Co.,
*1323 [0]nce the plaintiff has established standing and the defendants have been haled into court by the plaintiff, the only role for the defendants is to defend against the suit. The defendants’ affirmative defense does not constitute an independent cause of action, but is a defensive claim only. Therefore, the rules for determining whether a plaintiff has standing are simply inapplicable to the defendants in this case.
Consistent with our reasoning in Simpson, we believe that Minnelusa, as the defendant, can assert the Florida stock repurchase statute as an affirmative defense. The issue is whether Minnelusa is an intended beneficiary of the Florida stock repurchase statute, and whether we should permit the corporation’s use of the statute to void its obligations under the stock repurchase agreement.
III.
A.
Minnelusa and Gower claim that because Minnelusa was insolvent when it issued the promissory notes to the plaintiffs, the stock repurchase was illegal and void under the Florida stock repurchase statute. 2 Therefore, they argue that the obligations contained in the promissory notes are unenforceable.
Stock repurchase statutes are designed to protect creditors and.minority stockholders from corporate mismanagement of assets.
Naples Awning & Glass, Inc. v. Cirou,
The plaintiffs cite passages from
Hayes v. Belleair Development Co.,
[t]he weight of authority appears to be that, unless forbidden by charter or statute, a corporation is at liberty to purchase shares of its own stock. If such purchases are made when the corporation is insolvent, regardless of the rights of creditors and stockholders therein, we have found no case wherein a court, as between the stockholders making the sale and the corporation, has held them invalid and subject to avoidance at the suit of the corporation.
Hayes,
As to the question of the right of the Corporation to purchase its stock only out of surplus ... we are of the opinion that the statute relative thereto is primarily to protect creditors and other stockholders from fraud and damages resulting therefrom. There is no evidence of fraud, nor of damage to creditors and there are no other stockholders to complain, so we conclude that this contention under the facts in this cause is without merit.
*1324
Lewis,
Minnelusa and Gower cite
Naples,
More directly on point are the majority of cases from other states that prohibit corporations from using stock repurchase statutes to void stock repurchase agreements.
Irwin,
A minority of state appellate courts have held that stock repurchase agreements which violate statutory prohibitions are illegal and void, and refuse to enforce the obligations contained therein.
McGinley v. Massey,
The Court has not, in fact, adopted such a rigid rule that any contract made in violation of any statute is unenforceable. What it has done, although sometimes fleetingly, is to examine the statute at issue and the public policy behind it in an attempt to discern whether the legislature intended for contracts made in violation of the statute to be void or unenforceable. Other Maryland cases have more clearly expressed this notion.
Springlake Corp. v. Symmarron Ltd. Partnership,
We agree with the majority view that the validity of a corporate stock repurchase may be attacked only by persons who are injured or prejudiced thereby and not by the corporation itself.
See Triumph Smokes,
B.
Similarly, Gower raises the Florida stock repurchase statute as a defense to his obligations under the promissory notes. A shareholder who is fully aware of, and consents to, a questionable transaction may not
*1325
thereafter attack that transaction by requesting that it be declared illegal.
Libco Corp.,
Although Gower is a Minnelusa shareholder, the court of appeals correctly noted that not only was Gower aware of the stock repurchase agreement, but he also personally guaranteed promissory notes to effectuate the transaction he now seeks to invalidate.
Andrikopoulos,
IV.
The judgment of the court of appeals is affirmed on different grounds.
Notes
. A clause in the promissory notes provides:
This Note is made under and governed by the laws of the State of Colorado. The place of venue for any action under the terms of this Note shall be Arapahoe Counly, Colorado District Court.
The stock repurchase agreement contains a similar clause.
. We need not undertake a lengthy conflict of laws analysis to determine whether Colorado or Florida law should be applied to this cause of action. In this case, both parties have proceeded on the assumption that the Florida stock repurchase statute is controlling. Additionally, Minne-lusa was incorporated in Florida and is subject to the laws of that state governing corporations. See Fla. Stat. ch. 607.1701 (1992). We therefore believe it is necessary for us to apply Florida law to determine whether Minnelusa may use the Florida stock repurchase statute to void its obligations under the stock repurchase agreement.
. Gower also contends that because the stock repurchase agreement was illegal, his guarantee of the plaintiffs' promissory notes is unenforceable. In support of this claim, he seizes upon our language in
Alzado v. Blinder, Robinson & Co.,
