RE: An Example How Uniswap Calculate The Price Of The Tokens and What Happens When A Swap Is Made
Its a ratio yes. But its not guided from the other exchanges price. A lot of these tokens are listed on uniswap only. The sushi token was listed in uniswap only and had 200+ M marketcap. Later binance listed it.
So no need for reference price.
RE: An Example How Uniswap Calculate The Price Of The Tokens and What Happens When A Swap Is Made