Add currency code as array key to maintain backwards compatibility

add currency code as the array index for a currency array list to mainat.in backwards compatibility