I am implementing a uniswap v2 front end interface for a UniswapV2Router contract. I was wondering how does uniswap identifies when swapExactETHSupportingFeeOnTransferTokens needs to be used instead of swapExactETHForTokens. In other words, how does the uniswap interface identifies fee on transfer tokens? Also for both these functions does the user only need approve the router ?
Uniswap – Understanding Fees on Transfer Tokens and Uniswap V2
uniswap
Best Answer
For your two questions:
Hope it helps you.