It’s been a dramatic couple of weeks for Puerto Rican lender Doral Financial (DRL) , who have experienced extreme whipsaw action as the company’s immediate future at any given point, be it insolvency or full financial recovery, changes by the day.

The fortunes took a turn for the better when the Puerto Rican Supreme Court made a crucial decision in Doral’s favor, opening the doors fort a major payout that could reverse the bank’s slide towards insolvency.  

Doral Seeks to Shore Up Capital

In early 2014 Doral had been discovered to be using improper assets to satisfy their Tier 1 capital requirements.  After this discovery, the bank scrambled to find a capital injection to stabilize the bank’s assets, as Moody’s, Fitch, and the S&P all downgraded the bank in response.

This put Doral in a very problematic situation. In the aftermath of the 2008 financial meltdown, banks were forced to have the capital required to pass more stringent stress tests to assure they could withstand financial catastrophe. In short, Doral needed money.

 It appeared Doral had found their savior in their own home government, who they claimed owed Doral a whopping $230 million in prior tax overpayments.

Imagine Doral’s surprise when the Puerto Rican government said, in no uncertain terms, “no.” Lacking any recourse, Doral filed a lawsuit in Puerto Rico’s home government, seeking to recover the money which they believed they were owed and so desperately needed.

Enter the Puerto Rican Supreme Court

Just four days later, the Supreme Court rendered their decision in Doral’s favor, and further forced the government to expedite a review of the repayment process, with a judgment set to be rendered by June 26.

While this far from guarantees that Doral will receive the desperately needed funds they seek to recover, the quick turnaround from the Supreme Court does give Doral a shot.

Although this development only means that Doral’s chances of receiving repayment from the government has changed from “no” to “maybe,” the company was ecstatic at the development. In a press release responding to the Supreme Court’s decision, Doral CEO Glen Wakeman said “We welcome the Puerto Rico Supreme Court's decisive action today. Doral is committed to pursuing its legal rights in this matter, and we invite the government of Puerto Rico to join us at the negotiating table so that we can resolve this issue and move forward."

What this Means for Doral and Their Stockholders

While it’s impossible to assign an exact dollar amount to hope, the market tried its best to do so on Monday trading action, with shares of Doral spiking on a prayer that the bank could receive a windfall.  

The Supreme Court’s decision clearly gives Doral some bargaining power, opening up the possibility that while they might not, and most likely will not, receive the full $230 million they seek, they can likely extract some capital from the government to shore up their reserves.

To be sure, Doral’s not out of hot water just yet. The San Juan-based lender still faces a class-action lawsuit from stockholders concerning alleged securities violations.

But if they are able to extract the money they believe they are owed from the Puerto Rican government, their fortunes, and in turn their stockholder’s fortunes, will undoubtedly change for the better.

By 1:30 EST shares of Doral had climbed 26.74 percent to hit $4.40 a share.