We'd be met at airports in 20-foot limousines, and taken to places like the Atlantis hotel in Dubai or the Singapore Grand Prix. There'd be a hundred grand spent in the bar.

In 2013, Jas Bains was an ambitious young lawyer, enjoying the high life that came with working for an extremely profitable City hedge fund.

Today, he is jobless and has lost most of his wealth, having spent years fighting legal battles and attempting to clear his name of association with a huge tax scam.

The irony, he says, is that he blew the whistle on the scam in the first place – only to find himself one of the targets of a £1.4bn lawsuit.

He is reflecting one month after the case ended, bringing to a close eight years of legal arguments and one of the highest value civil cases ever heard in the UK.

The Danish tax authority was left licking its wounds, after failing to establish that a large group of defendants, including Mr Bains, were liable for huge losses it had suffered.

It all began in 2009, when a banker named Sanjay Shah established a London-based hedge fund called Solo Capital...

This focused on transactions where shares were sold from one investor to another immediately before the payment of a dividend (cum, or with, dividend) but delivered afterwards (ex-dividend).

Those involved exploited delays in processing the sale to create confusion over who actually owned the shares at the moment when the dividend was paid. This tactic allowed both parties to claim rebates on withholding tax - a levy which had only been paid once, when the dividend was issued.

From the outside, it was complicated, but for those involved it led to ever bigger and more elaborate trades which ultimately cost taxpayers across Europe billions.

It initially became popular in Germany, before spreading to other countries including France, Belgium, Italy and Austria. Solo Capital targeted Denmark, with the bulk of its cum-ex trades taking place from 2013 onwards.

Jas Bains joined the company in 2010, as its head lawyer, but went on to run the London office. At the time, Solo was a successful firm, making money in five or six different areas pretty well.

And making money meant enjoying the high life, with staff going on sprees to places like Las Vegas, Singapore and Dubai...

In 2015, he decided to blow the whistle. He contacted a Danish lawyer, who in turn put him in touch with the Danish police. He went on to spend two and a half years assisting them with understanding how the cum-ex scam worked...

But when the Danish tax authority, Skatteforvaltningen (Skat), launched its huge case, Mr Bains was one of the more than 100 individual and corporate defendants initially targeted - alongside Mr Shah.

With that lawsuit hanging over him it became out of the question for him to work as a lawyer, or to get a role in the City of London...

However, in October, High court judge Mr Justice Andrew Baker threw out Skat's claims...

For Mr Bains, the ruling provided some much-needed closure – and, he says, a chance to move on.