This could be the stuff of a separate thread....
"...the bank being merely a debtor may discharge its indebtedness to the depositor in any currency that is legal tender, although the deposit was made in gold, unless there was a special agreement to repay in like currency."