address to my contract. Now when I look at token balance of my contract I see it. (token.balanceOf(address(this)))
But can contract track who send the tokens and track balance of received token by sender? aka erc20 wallet?
p.s. I know that I can write a custom func which transfer token from and address to contract and the manage it. but can contract track it somehow else?
huh. Thanks a tons man! It costs me a day to comprehend tokens behavior ... ))
No prob. Yeah a typical setup in this case is to have an ownerOnly function that can "rescue" these improperly sent tokens, sending them back to the address that sent them
as I assume the contract owner have to provide sender address to the 'rescue' func, because contract dont know it. right?
Обсуждают сегодня