0

Let's say I have my own ERC20 token FOO.

I'd like my users to be able to send their FOO to my smart contract FooSwap.

Is it acceptable practice to bypass the approval mechanism in the ERC20 Foo contract for transfers to the FooSwap contract address? If so, can I simply include a conditional on the transfer function that checks if the destination address is the FooSwap address, or could this open up vulnerabilities?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.