In my opinion, the bank has just cause for terminating your employment. Your actions were unethical in a situation that could just have easily occurred during the course of your employment at the bank. You displayed poor judgment and unethical decision making.
I think the bank has grounds to dismiss you, however; this is not my particular area of law.
I wonder if anyone has more insight on this issue as I find the scenario quite interesting.