Uniswap – UNI Token

Uniswap V3 Price Oracle | DeFi




Subscribe Our Youtube Channel

Follow Twitter
Register CoinEX + 1.5% Receive

Solidity example of time weight average price oracle using Uniswap V3

#Solidity #SmartContract #Ethereum #スマートコントラクト #DeFi

Related Articles

https://github.com/t4sk/uniswap-v3-twap

https://github.com/Uniswap/v2-periphery/blob/master/contracts/examples/ExampleOracleSimple.sol

Take a course
https://www.smartcontract.engineer/

Follow
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com

Source

0 0 votes
Article Rating

Subscribe
Notify of
guest
16 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Hồng Tính Đặng
Hồng Tính Đặng
1 month ago

Thank you for the video. But why the result I got is a little different from the number I see in the uniswap pool?

juan cruz saldaño
juan cruz saldaño
1 month ago

Nice video!, i have a question, im making a trading bot, and when try to get prices this smart contract returns always the same number, i mean, i made a loop that calls estamateAmount every 1 min but returns same value, coud this happen? Or there are some issue that i dont know it

Centori
Centori
1 month ago

How can I add the new Uniswap v3 in your my smart contracts for flashbots simple arbitrage ?thanks(newby asking)

Beau Allgood
Beau Allgood
1 month ago

Does anyone know how to communicate with a (eth/other token) liquidity pool? Ethereum doesn't have a token address that I am aware of, but I know they have the liquidity pools.

日本人
日本人
1 month ago

thankyou everything

Juan Graterol
Juan Graterol
1 month ago

Thanks for your Videos, they are really helpfull, is there by change any recomendation on a block chain course that you know? it will be helpfull! thanks againg.

Carlos Schellenberger
Carlos Schellenberger
1 month ago

Excellent! Thank you!

Рома Козиоров
Рома Козиоров
1 month ago

After all, the written function shows the average value of the price for secondsAgo, and not the exact value of getAmountOut(in termins uni v2)? And what happens if the amount of amoumtIn swings the price to another tick?

Dino
Dino
1 month ago

hope to see more vyper series soon!

Calvin
Calvin
1 month ago

can you go over how uniswap v3 stores historic TWAPs?

Saurav S
Saurav S
1 month ago

Thanks alot for the tutorial! One question , while testing, in test file ,'twap.test.js' , const DECIMALS_0 = 6n , what does 'n' means here?Is it related to 'chai library?

Lazar Henderson
Lazar Henderson
1 month ago

Thank you so much for this channel!

Antek Kois
Antek Kois
1 month ago

I was wondering what to use to take the token price in Smart contrat for free, I chose Chailink, but now I will change it, because I need more tokens ERC20 and your solution give me this. But what id cheaper in gas fee 🤔

比特彭 Crypo Peng
比特彭 Crypo Peng
1 month ago

2:50 why need to check address(0)?

Cédric S
Cédric S
1 month ago

Uniswap V3 is a best defi protocol web3 ! The version 3 create add value on web 3 Defi ! UniV3 is great Oracle in the futur use financial ! Thank you for example on smart contract intergrate !
What's tick finish (- -;) ??
Can you show prediction price with Oracle librairy Uniswap ?

ibrahim shehu ibrahim
ibrahim shehu ibrahim
1 month ago

Nice video

Back to top button
16
0
Would love your thoughts, please comment.x
()
x