Uniswap / Uniswap/interface

Widget slow to fetch prices

Open
#3,781 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.