DeFi from Scratch

tags: DeFi, Blockchain, Uniswap, Uniswap V3 I need derive price from decentralized exchanges, and I have finished some research about Uniswap v3. It’s brand new for me, and after that I want to share some ideas about DeFi, and I think it would be helpful for you to understand Uniswap and some other decentralized exchanges. DeFi from Scratch We exchange stuffs very often, and we can exchange tokens in a centralized exchange. For example, Alice owns some ETH, and Bob owns some DAI. Now, Alice want to swap some ETH for DAI, and Bob want to swap some DAI for ETH. How could they do? ...

August 25, 2022 · 3 min · Gray King

Uniswap V3 Tick

tags: Uniswap V3 source: Shao, 田少谷. “Uniswap v3 Features Explained in Depth.” Taipei Ethereum Meetup (blog), July 20, 2021. https://medium.com/taipei-ethereum-meetup/uniswap-v3-features-explained-in-depth-178cfe45f223. Tick is a price range Each tick is a price range with upper bound and lower bound. Tick price from index: \(p(i) = 1.0001 ^ i\) 1.0001 ** 138162 # 999_998 Tick index from price: \(log_{1.0001}p\) import math math.log(1000_000, base=1.0001) # 138162.01321981344

August 25, 2022 · 1 min · Gray King

Uniswap V3

tags: Uniswap The Graph: Uniswap V3 Subgraph

August 25, 2022 · 1 min · Gray King

DeFi

tags: Blockchain

August 25, 2022 · 1 min · Gray King

Uniswap

tags: Blockchain,Ethereum,DeFi

August 25, 2022 · 1 min · Gray King