what is the purpose of writing a smart contract to use the uniswap/pancakeswap router when there's the sdk that can be used from frontend

Feb 15, 2023, 9:17 AM
I didn't udnerstand
who said that you must write a smart contract to interact with uniswap?
Feb 15, 2023, 9:36 AM
thank you so much for replying
I see some doing that,
Im wondering why
Feb 15, 2023, 9:36 AM
like who?
or others contracts like tokens
Feb 15, 2023, 9:41 AM
yeah contracts like tokens
Feb 15, 2023, 9:41 AM
ahhh ok
then why you mentioned the sdk?
sdk is for offchain things
Feb 15, 2023, 9:41 AM
my bad.
Feb 15, 2023, 9:42 AM
depends
do you plan to add liquidity in your dex?
if you make a dex only for 1 token I don't see any advantage
use pancakeswap that is battle-tested
Feb 15, 2023, 9:46 AM
yes please
ooohhh ok
Feb 15, 2023, 10:53 AM
but router has a check too
are you talking about feeTo ?
or normal lp holders fee?
on uniswap walktrough it just says this

https://ethereum.org/en/developers/tutorials/uniswap-v2-annotated-code/#:~:text=In%20Uniswap%202.0%20traders%20pay,goes%20to%20the%20liquidity%20providers.
Feb 15, 2023, 12:35 PM

© 2024 Draquery.com All rights reserved.