Published On Mar 27, 2021
How are the prices for token exchanged determined on Uniswap? Here I will explain how pricing is calculated using a mathematical equation x * y = k
x * y = k equation 0:43
spreadsheet simulation 2:46
dy = ? 5:17
Uniswap V2 pair and router contract 7:01
#DeFi #Uniswap #SmartContract #Ethereum
References
Uniswap https://app.uniswap.org/
Etherscan https://etherscan.io
Uniswap V2 Pair DAI - ETH contract
https://etherscan.io/address/0xA478c2...
Uniswap V2 Router contract
https://etherscan.io/address/0x7a250d...
x * y = k spreadsheet
https://docs.google.com/spreadsheets/...
Follow on Twitter: @ProgrammerSmart / programmersmart
Join me on Discord: / discord
Website: https://smartcontractprogrammer.com