Timeline for Send ERC20 Tokens directly to contract address to trigger to function in contract
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 18, 2021 at 0:10 | comment | added | DrGorilla.eth | Perhaps reversing your logic the other way around (ie calling a function in your contract that will call transferFrom) might solve it? | |
Nov 17, 2021 at 2:47 | comment | added | Ismael♦ | It is not possible under the ERC-20 standard, EIP-777, EIP-1155. There's EIP-2612 that proposes an extension to ERC-20 that allows using a single call to replace approve+transfer. | |
Nov 16, 2021 at 10:26 | answer | added | Max | timeline score: 0 | |
Nov 16, 2021 at 8:50 | comment | added | Majd TL | It is possible (but I'm not sure if it has some problem or is safe). After sending the tokens, you need someone to trigger a new tx to call the function that checks if the contract has enough balance and then does the changes (you need ofc the address of the erc20 contract). If the erc20 Contract is yours, then check this Standard (but still in Draft and maybe there is better Standard to solve that problem) github.com/Dexaran/ERC223-token-standard Anyway, Token integration is very risky so take care youtube.com/watch?v=6GaCt_lM_ak | |
S Nov 16, 2021 at 6:40 | review | First questions | |||
Nov 17, 2021 at 2:47 | |||||
S Nov 16, 2021 at 6:40 | history | asked | Adam Surrey Smitson | CC BY-SA 4.0 |