I'd like to calculate a Merkle tree on chain, and then only store the root.
The tree will track all balances for an ERC20 token. How many accounts would this be feasible for? If there are 1000 balances would it be possible to iterate over all the balances to create the Merkle root? What is the maximum number of balances for which this would be possible?
I intend to do some testing myself, but was wondering if anyone has already dealt with this and knows what sort of limits I can expect to encounter.