Function getAgregatedBalances