Timeline for IERC20.approve(spender, amount) thinks the owner is also the contract
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 18, 2020 at 22:15 | vote | accept | Saehun Sean Oh | ||
Dec 18, 2020 at 22:15 | answer | added | Saehun Sean Oh | timeline score: 0 | |
Dec 12, 2020 at 15:06 | comment | added | goodvibration |
Doing someToken.approve(address(this), someAmount) is meaningless, as you are only approving the contract to transfer tokens from itself (i.e., you can now call transferFrom inside this contract, but heck, you may as well just call transfer without any approval, and get the exact same result).
|
|
Dec 12, 2020 at 14:18 | answer | added | haxerl | timeline score: 0 | |
Dec 12, 2020 at 13:01 | comment | added | Saehun Sean Oh | How do you allow my contract to take Tokens from my account then? | |
Dec 12, 2020 at 12:25 | answer | added | Wyctus | timeline score: 1 | |
Dec 12, 2020 at 11:48 | comment | added | haxerl | well approve allow you the spender to spend the amount of the transaction sender. So the owner is right because the contract send the transaction not you. | |
Dec 12, 2020 at 11:22 | history | asked | Saehun Sean Oh | CC BY-SA 4.0 |