Uniswap / sdk-core

⚙️ Code shared across TypeScript Uniswap SDK versions
MIT License
121 stars 354 forks source link

Why use uniswap sdk is so hard? #134

Closed alicercedigital closed 5 months ago

alicercedigital commented 5 months ago

I'm struggling to understand why those of you who are evidently intelligent create something so complicated for users.

We simply want to employ code to swap pairs; it's perplexing that for a single straightforward use case, we're required to write an extensive amount of code. While I acknowledge the inherent complexity in Uniswap, it's puzzling why no one has yet devised a simpler method to navigate this platform, abstracting away the complicated elements.

For the majority of us, the desired use case is straightforward: we aim to exchange Token A for Token B in a specified quantity. However, achieving this necessitates several complex steps: creating a pool, establishing a route, generating a quote, executing a trade, and so on. Each step in this process is unnecessarily convoluted.

Why haven't you considered releasing an intuitive package that seamlessly handles all these steps, requiring only the token addresses and the transaction amount as input?

The prevailing complexity seems unwarranted, especially considering that 90% of use cases are simple.