I'm somewhat sympathetic to this view but I don't think it's consistent. If your bank gets hacked due to a flaw in the code and millions get stolen, why would you not apply the same code is law principle?
Because the bank's relationship with its customers, central banks, and society as a whole, is codified in law and not in code. So if you find a legal loophole that's different from hacking the bank to get something the legal system doesn't entitle you to. When the code is the law, a hack is a loophole.
There seems to be an ongoing misimpression here that code is, in fact, law, as though our existing legal system doesn’t have something to say about that.
Because a bank's code is not the law. Banks handle actual money, for which there is a thousand year history of common law for settling disputes of ownership, debt, theft, collection practices, and insurance.
I think it is consistent, banks are built on legal frameworks. If you so chose to, and you were in certain countries, you could "hack" the legal system to steal the money yourself [1] and it would be perfectly 'legal'.