BitGo / eth-multisig-v2

Multi-Sig Wallet v2, supporting original Wallet.sol methods with additional confirmAndExecute improvements to allow for single-transaction signing by multiple owners.
Apache License 2.0
271 stars 101 forks source link

ERC20 Forwarder #7

Open affankhan43 opened 6 years ago

affankhan43 commented 6 years ago

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

barathcj commented 6 years ago

You can flush tokens on the forwarder contract

affankhan43 commented 6 years ago

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

cernicc commented 6 years ago

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 commented 5 years ago

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