Time Weighted Average Price Math | DeFi

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • Math for TWAP - time weighted average price
    #Solidity #SmartContract #Ethereum #スマートコントラクト #DeFi
    Uniswap V2 doc
    docs.uniswap.org/protocol/V2/...
    Take a course
    www.smartcontract.engineer/
    Follow
    / programmersmart
    / discord
    t.me/smartcontractprogrammer
    smartcontractprogrammer.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 29

  • @ethancemer8679
    @ethancemer8679 2 ปีที่แล้ว +11

    Your channel is like the Khan Academy of blockchain development! Such high quality educational content all for free.

  • @andreujuanc
    @andreujuanc 2 ปีที่แล้ว +14

    Unlike high-school math class, you show an equation and immediately after show it's importance and how it's used. Well done!

    • @D3athW1ng
      @D3athW1ng 2 ปีที่แล้ว

      I second that.

  • @dennisdecoene
    @dennisdecoene 2 ปีที่แล้ว

    That ended with a bang. I was watching and ok like 'ok so...' and the uniswap V2 does this. And then it hit me. Fantastic work. I've often wondered how they did this.

  • @WanerPena
    @WanerPena 2 ปีที่แล้ว

    I found this channel today and it's pure gold!

  • @richardrobertson7899
    @richardrobertson7899 ปีที่แล้ว

    Thanks, very helpful!

  • @disqid6121
    @disqid6121 2 ปีที่แล้ว

    thx bro as i was doing a uniswap walthrough it helped me a lot

  • @salem232
    @salem232 2 ปีที่แล้ว

    This is an amazing video illusatration !! 😍 very clear step through and easy to understand !! make formula less intimitating 😎

  • @javierdash1
    @javierdash1 2 ปีที่แล้ว

    not only the best solidity teacher also a great math teacher

  • @gregoriocasas3259
    @gregoriocasas3259 2 ปีที่แล้ว +1

    Uuu awesome! Thanks a lot!... The software to draw the math is cool too

  • @D3athW1ng
    @D3athW1ng 2 ปีที่แล้ว

    Nicely explained.

  • @alibaba888
    @alibaba888 2 ปีที่แล้ว

    Wonderful explanation

  • @arsln_galimov
    @arsln_galimov ปีที่แล้ว

    thank you

  • @cbrian4326
    @cbrian4326 2 ปีที่แล้ว +1

    What's an awesome video !!
    And how could you write sum function to the excalidraw, is there any plugin there ?

  • @hernanphillip334
    @hernanphillip334 2 ปีที่แล้ว

    Hi bro could you make a video explaining about reflection contracts like rfi finance, safemoon etc?

  • @shadowtrooper2063
    @shadowtrooper2063 ปีที่แล้ว

    Upon reading the UniswapV2 docs, it says that the uniswapV2Pair contract does not store the cumulativePrice per last trade of each block. Can you explain how a smart contract would then get TWAP prices, does it have to query the contract for cumulativePrice every block?

  • @nikhilr3746
    @nikhilr3746 2 ปีที่แล้ว

    Cool

  • @kscott6413
    @kscott6413 ปีที่แล้ว

    Love it can..you write this in Python with a... Plot =

  • @CalvBore
    @CalvBore 2 ปีที่แล้ว

    will you be going over the uniswap v3 twaps?

  • @BlackieCrypto
    @BlackieCrypto 2 ปีที่แล้ว

    what's the name of the program that you are using?

  • @bamugift
    @bamugift 2 ปีที่แล้ว

    ​Hello Sir, This is the feedback I have Been getting each time i want to transfer my tokens from the contract. Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code": 3, "message": "execution reverted: BEP20: transfer amount exceeds balance" }

    • @daniel.contreras
      @daniel.contreras 2 ปีที่แล้ว +1

      This error is common when using the transferFrom function to transfer tokens. You will first need to authorize the amount for that transaction using the approve function from the ERC20 standard.

  • @paulbolhar921
    @paulbolhar921 2 ปีที่แล้ว

    where you was 2 month ago?))