[fixes #44382703] Fix side effect with fraction

When we convert the fraction to amount, we added 
a new element to the transfer hash. It was an 
unwanted side effect. I refactored a code to use 
a separate array for the amounts.