dappuniversity / price-bot

397 stars 392 forks source link

Why don't token prices actually change, both in the YouTube video and now? #36

Open elhaix opened 2 years ago

elhaix commented 2 years ago

If you look closely at the Uniswap and Kyper values in the video, they are the same for each iteration

image https://youtu.be/77G_-cMayRU?t=438

I get the same results locally as well. Different numbers but they don't change over time.

The Infura.io project endpoint is set to MAINNET, so why am I not seeing live data?

Dunya-8a commented 2 years ago

Good catch, it's the same for me.

elhaix commented 2 years ago

As I have gotten more familiar with this topic I think this may be the answer: I was initially under the impression that the number we were seeing was supposed to be the frequently fluctuating cost of a coin. However within a liquidity pool, ones token price is relative to the other and fluctuates as liquidity amounts change, which is less frequent.

Is that the case?