Entering a huge number (greater then 2^31-1) allowed me to deposit a negative amount of gold into the bank.
I believe you should probably disallow that...
to further test I withdrew a huge number and it gave me a balance that was positive. Then I pulled out a relatively large number and I was filthy rich. Your bank is quite bugged in this regard.