Uniswap v3 {USDC-ETH} Pool

https://thegraph.com/legacy-explorer/subgraph/uniswap/uniswap-v3

Question is

Which asset is more locked in USDC-ETH pool?

Firstly, we would like to see the spesific pool datas ? What can we do ?

https://info.uniswap.org/#/pools/0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8

Code:

{
pools(where:{id:”0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8"}) {
token0Price
token1Price
totalValueLockedToken1
totalValueLockedToken0
totalValueLockedETH
token0{name}
token1{name}
}
}

Output:

“token0”: “USD Coin
“token0Price”: “2490.396882478884960222652616864727”,
“token1”: “Wrapped Ether
“token1Price”: “0.0004015424236335465233812244819089961”,

https://info.uniswap.org/#/pools/0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8

“totalValueLockedETH”: “121363.1751230372646913525289215272”,

https://info.uniswap.org/#/pools/0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8

121363*2460=302.19m

https://info.uniswap.org/#/pools/0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8

“totalValueLockedToken0”: “178250721.515067”,
“totalValueLockedToken1”: “49787.948391448905597946”

and then 172.24 m* 0.0004=68896 ETH is locked by USDC

49787 ETH is locked by ETH

01.09.2021

Dr.Engin YILMAZ (veridelisi)

--

--

Solidity Programming Language

Solidity basics for beginners: Learn the fundamentals of smart contract development and build your first DApp! #Solidity #Foundry #Ethereum #Opcodes #DApps