Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

ERC20 Forwarder #7

Open
affankhan43 opened this issue Aug 17, 2018 · 4 comments
Open

ERC20 Forwarder #7

affankhan43 opened this issue Aug 17, 2018 · 4 comments

Comments

@affankhan43
Copy link

Contract missing the forwarder for ERC20 token how can i forward all ERC20 tokens to main contract address(parentAddress)

@barathcj
Copy link
Contributor

You can flush tokens on the forwarder contract

@affankhan43
Copy link
Author

yes i used the flush token function but how can it flush automatically on token deposit

@cernicc
Copy link

cernicc commented Nov 29, 2018

You can't do that. When someone transfers some tokens to the forwarder they actually call erc20 contract with transfer command. There is no ether on forwarder for forward of tokens. When you call flush you pay for that forward transfer on erc20 contract.

@cauta
Copy link

cauta commented Mar 5, 2019

You can't do that. When someone transfers some tokens to the forwarder they actually call erc20 contract with transfer command. There is no ether on forwarder for forward of tokens. When you call flush you pay for that forward transfer on erc20 contract.

you must pay for the transaction fee to collect the token from forwarder.
There is another solution, if the issuer token use ERC223 instead of ERC20. there is a function name token fallback. they will trigger a function in receiver to forward token.
More detail: https://medium.com/coinmonks/the-erc-223-evolution-eec0ef23e5cc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants