Widget slow to fetch prices
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I have noticed that when the widget is fetching prices within my dapp, it takes about 5x as long to fetch the price through the widget than if I go directly to uniswap.org to get the price (~5 seconds through the widget vs. ~1 second on Uniswap). I tested them side-by-side to make sure my WiFi wasn't causing the slow price quotes within my dapp.
Is the widget generally slower than Uniswap's website, or did I do something wrong in my implementation?
Any advice on how I can optimize the performance?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the widget's price-fetch timing in a dapp and compare it with the same request through uniswap.org, as described in the report. Trace the widget's price-fetching entry point and identify whether the difference is expected or caused by the implementation; done means documenting the cause and demonstrating improved or explained latency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100