Is there any way I can detect when some ERC20 token is transfered to my smart contract?
What I would like to do:
for example someone transfer 100 (ERC20 token) (regular transfer to smart contract address, not through smart contract method)
I would split those 100 to 5 addresses (users) balances (each user gets 20) mapping(address => uint256) private _balances;
then each user could withdraw these tokens
Thank you for any ideas.