I know there is a lot of threads on this but i did search and couldn't find the answer. Hoping someone can help me better understand Approve and transferFrom with ERC20 tokens.
If I want to approve Alice to spend my ERC20 tokens because ultimately i want my tokens to go to Bob, then the "spender address" in the approve function is Alice right? I am approving her to send my tokens to Bob so her address goes in the approve function?
Now, when i call transferFrom..... the "from" address is me(msg.sender), the "to" address is Alice (the person i approved), and then i put the amount. Still correct?
Lastly I still need to get my tokens to Bob so if I call a function that accepts my tokens and when i put the "from address" in this function is it going to be my address(msg.sender) or Alice (since she was the one who I approved)?
Or do i have some things wrong here? Thanks in advance for anyone who responds and helps.