[FIX] removed unused code

This code was not used.
Also it introduced global variable
Also it throws error when using custom currency (one not in 'currencies_all_keyed' map)