Block Explorer
Block Explorer
  • 46
  • 2 373 080
ERC4626 Vault Smart Contract tutorial | DeFi Vault tutorial
In this DeFi vault smart contract tutorial we build a tokenized vault smart contract using the ERC4626 standard. Learn how to build a custom vault that inherits from ERC4626, add vault fees and hook up your yield strategy code. Follow along and learn this important DeFi protocol pattern.
Useful links:
Remix editor:
remix.ethereum.org/
Metamask wallet:
metamask.io/
Ethereum unit converter:
eth-converter.com/
Sepolia faucets:
sepoliafaucet.com/
www.infura.io/faucet/sepolia
ERC4626 info:
eips.ethereum.org/EIPS/eip-4626
ethereum.org/en/developers/docs/standards/tokens/erc-4626/
docs.openzeppelin.com/contracts/4.x/erc4626
implementations:
github.com/transmissions11/solmate/blob/main/src/mixins/ERC4626.sol
github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/ERC4626.sol
ERC4626 Tutorial GitHub repo:
github.com/jspruance/erc4626-vault-tutorial
Imports for remix:
Vault.sol
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/ERC4626.sol";
import "github.com/jspruance/erc4626-vault-tutorial/blob/main/contracts/ERC4626Fees.sol";
OceanToken.sol
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
zhlédnutí: 8 373

Video

Uniswap V3 Tutorial | Uniswap Smart Contract (Single Swap) | DeFi Tutorial
zhlédnutí 46KPřed rokem
In this Uniswap tutorial create a smart contract that implements a simple ERC20 token swap (Uniswap single swap) using the Uniswap V3 protocol. This DeFi tutorial explores the Uniswap V3 ISwapRouter interface for executing token swaps from Uinswap liquidity pools. Follow along and learn about this important DeFi primitive. GitHub repo for this tutorial: github.com/jspruance/uniswap-tutorials LI...
Aave Liquidity Pool Tutorial | DeFi Liquidity Pools | Crypto passive income
zhlédnutí 18KPřed rokem
Learn how to supply tokens to the Aave liquidity pool and earn interest in the form of passive income on your investment. We explore how to add and remove liquidity from both the UI and smart contract code. Topics covered include Aave liquidity market protocol, DeFi liquidity pools, aTokens (equity tokens), and more. Project repo: github.com/jspruance/aave-liquidity-pool-tutorial LINK address (...
Flash Loan Arbitrage | Aave Flash Loan Tutorial
zhlédnutí 143KPřed rokem
Create an Aave Flash Loan arbitrage smart contract from scratch in this comprehensive flash loan tutorial. In this step-by-step DeFi tutorial we use the Aave v3 protocol to build a flash loan receiver smart contract. We'll then use a mock DEX contract to simulate a flash loan arbitrage. Project repo: github.com/jspruance/aave-flash-loan-tutorial Aave v3 Flash Loan documentation: docs.aave.com/d...
Web3 Tutorial | Connect Wallet Tutorial | Web3 Connect Metamask Wallet
zhlédnutí 35KPřed rokem
In this web3 tutorial we create a connect wallet button for a dApp in order to connect to the app using Metamask. Starter code: github.com/jspruance/faucet-dapp-starter-code Completed code: github.com/jspruance/faucet-dapp-starter-code-connect-wallet Faucet dApp tutorial: czcams.com/video/Yecd8UtY8cI/video.html
Web3 Tutorial Project | Build a Faucet dApp with Ethersjs & Reactjs
zhlédnutí 11KPřed rokem
In this project-based web3 tutorial we build a complete faucet dApp using Ethersjs and Reactjs to connect to a wallet and interact with a Solidity faucet smart contract on the Ethereum Goerli network. Topics covered include: connecting a wallet, interacting with a smart contract, dApps, web3 tutorial for beginners, Reactjs, Ethersjs library, web3js library, application binary interface (abi), E...
Faucet Smart Contract Tutorial | Solidity Tutorial
zhlédnutí 15KPřed rokem
In this faucet smart contract tutorial we build a faucet smart contract to give away ERC20 tokens on Ethereum to anyone who requests them. Topics covered in this video include Solidity interfaces, events, working with time and sending and receiving tokens. Project repo: github.com/jspruance/erc20-tutorial-block-explorer Goerli testnet faucet: goerlifaucet.com/ Install MetaMask: metamask.io/ Rem...
ERC20 Token Tutorial | Create Your Own Cryptocurrency
zhlédnutí 135KPřed rokem
In this ERC20 token tutorial you will learn how to create your own cryptocurrency as an ERC20 token on Ethereum. We cover all of the steps from development and testing to deployment. Topics covered include testing in the Remix editor, creating a project with Hardhat, token design, ERC20 smart contract development, smart contract testing and deployment to Ethereum. Project repo on GitHub: github...
Python Tutorial - Python Crash Course for Beginners
zhlédnutí 3,5KPřed rokem
Learn Python with the Python Crash Course for Beginners. In this Python tutorial we cover all the basics of the language, including variables, data types, data structures and functions. Build a CLI number guessing game in the course's final project. Course source code: github.com/jspruance/python-crash-course-block-explorer
EIP-4337 Account Abstraction & Smart Contract Wallets featuring Stackup
zhlédnutí 12KPřed 2 lety
Learn about Ethereum account abstraction, smart contract wallets and EIP-4337 with code examples from Stackup. Vitalik Buterin blog post: medium.com/infinitism/erc-4337-account-abstraction-without-ethereum-protocol-changes-d75c9d94dc4a EIP-4337: eips.ethereum.org/EIPS/eip-4337 Stackup wallet: www.stackup.sh/ Stackup GitHub: github.com/stackupfinance Stackup Dischord: discord.com/invite/FpXmvKrNed
Web3 Tutorial Project | Build a web3js dApp with a Solidity lottery smart contract on Ethereum
zhlédnutí 78KPřed 2 lety
In this project-based web3 tutorial we build a completed lottery dApp with a focus on how to build a UI for a lottery smart contract, using the web3js library. Topics covered include: the web3js library, connecting a Metamask wallet, application binary interface (abi), NextJS, Truffle, Ethereum Rinkeby testnet, Chainlink VRN, deploying a Solidity smart contract to Ethereum and more. Completed p...
Smart Contracts 101 - Simple Ether Wallet Smart Contract Tutorial
zhlédnutí 14KPřed 2 lety
In this Solidity Ethereum smart contract tutorial we build simple Ether wallet smart contract to review the basics of sending and receiving funds to and from a smart contract. Remix IDE: remix.ethereum.org/
Smart Contract Tutorial | Create a Safe Remote Purchase Ethereum Smart Contract with Solidity
zhlédnutí 16KPřed 2 lety
In this smart contracts tutorial video we create a safe remote purchase Ethereum smart contract using Solidity and the Remix online IDE and test it's methods using the Javascript VM virtual Blockchain. Remix IDE: remix.ethereum.org/
Web3 Tutorial Project | Build a web3js dApp for a smart contract
zhlédnutí 109KPřed 2 lety
In this project-based web3 tutorial we build a completed dApp with a focus on how to build a UI for a smart contract, using the web3js library. Topics covered include: the web3.js library, application binary interface (abi), NextJS, Truffle, deploying a Solidity smart contract to Ethereum and more. Vending Machine smart contract tutorial: czcams.com/video/wWAkR7CUwe4/video.html
Reentrancy Attack | Smart Contract Security Tutorial Part 2
zhlédnutí 11KPřed 2 lety
In this smart contract security tutorial we look at how reentrancy attacks work and what we can do to protect against them, including using a reentrancy guard. This tutorial also shows how one smart contract can call another smart contract on the blockchain. Smart Contract Security series source code: github.com/jspruance/smart-contract-security
Access Control | Smart Contract Security Tutorial Part 1
zhlédnutí 9KPřed 2 lety
Access Control | Smart Contract Security Tutorial Part 1
How to Become a Blockchain Developer
zhlédnutí 54KPřed 2 lety
How to Become a Blockchain Developer
How to Make an NFT Collection | NFT Tutorial | What are NFTs?
zhlédnutí 16KPřed 2 lety
How to Make an NFT Collection | NFT Tutorial | What are NFTs?
Lottery Smart Contract Tutorial Part II - Get a verifiable random number with Chainlink VRF
zhlédnutí 15KPřed 2 lety
Lottery Smart Contract Tutorial Part II - Get a verifiable random number with Chainlink VRF
Smart Contract Tutorial - Create a lottery smart contract in Solidity
zhlédnutí 28KPřed 2 lety
Smart Contract Tutorial - Create a lottery smart contract in Solidity
Deploy a smart contract to Ethereum using Truffle - A step-by-step guide.
zhlédnutí 33KPřed 2 lety
Deploy a smart contract to Ethereum using Truffle - A step-by-step guide.
Smart Contract Tutorial - Vending Machine Smart Contract in Solidity
zhlédnutí 31KPřed 2 lety
Smart Contract Tutorial - Vending Machine Smart Contract in Solidity
Solidity Tutorial - Basics: Functions
zhlédnutí 10KPřed 2 lety
Solidity Tutorial - Basics: Functions
Smart Contracts 101 - Create a Simple Ethereum Smart Contract with Solidity
zhlédnutí 98KPřed 2 lety
Smart Contracts 101 - Create a Simple Ethereum Smart Contract with Solidity
Intro to AWS Lambda with Python | AWS Lambda Python Tutorial
zhlédnutí 260KPřed 5 lety
Intro to AWS Lambda with Python | AWS Lambda Python Tutorial
AWS CodePipeline tutorial | Build a CI/CD Pipeline on AWS
zhlédnutí 279KPřed 5 lety
AWS CodePipeline tutorial | Build a CI/CD Pipeline on AWS
QnA Maker Bot | Microsoft Bot Framework tutorial
zhlédnutí 46KPřed 5 lety
QnA Maker Bot | Microsoft Bot Framework tutorial
Microsoft Bot Framework Tutorial & Azure Bot Service Intro | Create a Chatbot
zhlédnutí 96KPřed 5 lety
Microsoft Bot Framework Tutorial & Azure Bot Service Intro | Create a Chatbot
AWS EC2 Tutorial | Install WordPress on AWS EC2
zhlédnutí 59KPřed 5 lety
AWS EC2 Tutorial | Install WordPress on AWS EC2
AWS Cognito Tutorial Part III | Session persistence & change password
zhlédnutí 29KPřed 5 lety
AWS Cognito Tutorial Part III | Session persistence & change password

Komentáře

  • @Shiloh-q9x
    @Shiloh-q9x Před 17 hodinami

    Great analysis, thank you! Could you help me with something unrelated: I have USDT in my SafePal wallet along with the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). What's the best way to send them to Binance?

  • @MohamedMokhtar101
    @MohamedMokhtar101 Před dnem

    Thank you so much for an amazing explanation! I have a question if you can explain or link to video about the concept of pegging a token to an already established stable coin like USDT C, and what would be the impact in implementing this pegging of a token?

  • @nehmetekle7274
    @nehmetekle7274 Před dnem

    thanks for this amazing video, I have a question can I use your strategy and implement it to my senior project? I am using angular as frontend.

  • @seenunseen742
    @seenunseen742 Před 2 dny

    share code also

  • @mdrahatislamkhan9966

    from solidity: TypeError: Function has override specified but does not override anything. --> contracts/token.sol:30:91: | 30 | function _beforeTokenTransfer(address from,address to,uint256 value) internal virtual override(ERC20) searched a lot but could not find any solution

  • @antonioflores7042
    @antonioflores7042 Před 7 dny

    No pude instalar nada de lo que menciona al inicio del tutorial.

  • @Alexander-ns9yv
    @Alexander-ns9yv Před 10 dny

    A simple yet comprehensive guide how NOT to build your backend

  • @Health_guardian-tiktok

    This is just amazing a lot of effort in this video i got no words. Im totally new in coding and i have only interest in coding it comes from blockchain only and this video is a pure inspiration not just in making profit but also in new peaople who have a wish for coding and got no idea how to start . If you have any classes for coding and learning i would be happy to join (pay).

  • @Isaac-Ft3
    @Isaac-Ft3 Před 18 dny

    Hi love your video, can we hold assests that we buy using flash loans for a longer period like 2 3 months

  • @arthurkabuye654
    @arthurkabuye654 Před 22 dny

    High demand: The demand for blockchain developers is high and is expected to continue to grow in the coming years. ... High salaries: Blockchain developers typically earn high salaries. ... Challenging and rewarding work: Blockchain development is challenging and rewarding work.

  • @ertugrulgazihalimasultanes3950

    thanks for this video but kindly make a video for uniswap and pancakswap exchange for trade

  • @andrewshekel486
    @andrewshekel486 Před 23 dny

    As a Solidity expert do you understand that you getRandomNumber function is not random at all and how easily this code can be compromised?

  • @Letssendit
    @Letssendit Před 24 dny

    Brilliant presentation

  • @stevelawless1
    @stevelawless1 Před 24 dny

    Hey I loved your video, I have a dating app just about to launch which I am looking at creating a token for a variety of reward reasons for my users, I develop in javascript and php and wondered if you had a video which would build on this video, and tie in how to programmatically send tokens to users who meet certain goals, any help would be great thanks.

  • @bhatkanti89
    @bhatkanti89 Před 26 dny

    Perfect tutorial on Code pipeline Thanks 🙌🏻

  • @jimgarlie
    @jimgarlie Před 27 dny

    Great video, and I see the Rinkeby is now longer available so can you expand on using Sapolia or any others?

  • @JasonShiJason
    @JasonShiJason Před 29 dny

    a very good video,thanks.

  • @Alexander_Yacob
    @Alexander_Yacob Před měsícem

    Im having trouble with flashloan.sol file recognizing the code

  • @navidehbaghaeifar5528
    @navidehbaghaeifar5528 Před měsícem

    After making pipeline I get this 502 Bad Gateway nginx issue that I can not open musician app.Could you help me to fix this issue?

  • @84chillimilli
    @84chillimilli Před měsícem

    amazing tutorial can you make videos on basics of block chain like gas fee and architecture

  • @migueldeharoce
    @migueldeharoce Před měsícem

    Hi, if you are on a chrome extension, how can I do the same?

  • @84chillimilli
    @84chillimilli Před měsícem

    the best viddeo

  • @mar.c_o7346
    @mar.c_o7346 Před měsícem

    PS F:\$beans> npm init npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + npm init + ~~~ + CategoryInfo : ObjectNotFound: (npm:Str ing) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException i cant pass haha, pls help me..

  • @fsilva-electrica-silva-orizaba

    Thanks!

  • @MelanieNunez-uz6zi
    @MelanieNunez-uz6zi Před měsícem

    Ro😅

  • @0xmissiontomars
    @0xmissiontomars Před měsícem

    Tips [and rant sorry in advance haha] for those watching in 2024: So much has changed since this video was made, at least 25% of the code needs to be modified just to get it to compile and deploy, check the updates of hardhat's documentation to see what I mean. And mind you I've been aware of and testing flash loans on remix since aave v1 and truffle box. And I've actually gotten flash loans to work; until V3 that is. So far I've been working on this code for no joke 6-8 hours a day and going to bed around 5am every day for the past week and its still kicking my ass. I feel so defeated and it feels like I've wasted so much time considering I've made $0 since starting and the more I look for arbitrage opportunities the more the efficient-market hypothesis is holding true... Taking into account borrow and swap fees and available liquidity in the markets (check market scanners showing pool liquidity, this will show you the max theoretical borrow/swap positions you could execute with your flashloan) it's looking next to impossible to even theoretically... have a big enough position to turn a profit and mind you I'm looking across all the supported chains mentioned in the aave documentation focusing on L2's for cheap gas. And don't even get me started on what its taking to figure out the logic for a regular multi-hop flashloan to work. The uniswap documentation you need to replace his (dex.sol and dex.js) is another beast entirely, not to mention if you want to execute logic for a scenario like (aave borrow --> uniswap pool --> traderjoe pool --> aave repay) for example will involve more logic in your .sol file and multiple dex.js files to figure out. Don't waste your time on a basic single pair swap like flashloansimple in this market. All things considered let this serve as your answer to why the documentation says this code should only implemented by people well versed with EVM, ERC20, economics, and sdk's in general (if you don't know what these entail in a cryptocurrency context you have MUCH homework to do before attempting this project). Right now, just trying to find a reason to stop pulling my hair out and stay positive. been telling myself at least I'm learning, but man it would be a absolute *life changer* and miracle from God for me if I was to get this code to work and turn a decent profit today. thanks for coming to my TED rant

  • @sergiofarias1648
    @sergiofarias1648 Před měsícem

    Sorry, minute 9'42 when clicked on botton C on the botton 2 windows were opened on the top. I didnt understand how those were opened

  • @Elizabethomo
    @Elizabethomo Před měsícem

    😊 awesome video, explanation on point

  • @user-rz6gj4zj4q
    @user-rz6gj4zj4q Před měsícem

    the stater code link doesnt work, but the completed code does, and here is the link ending. cant post full link bc CZcams policy: github + /jspruance/faucet-dapp-starter-code-connect-wallet

  • @АлександрГудов-э5ч

    Hi all! Would you share ,please, how to import assign a picture/avatar for a token?

  • @ivanmychalcuk3625
    @ivanmychalcuk3625 Před měsícem

    Is it real ?

    • @dadsquad_8914
      @dadsquad_8914 Před měsícem

      Yes it is but please try to understand what he’s saying not just jump in and copy his code… and never just copy and paste any code into remix.ide. Remember if anyone says to copy and paste hundreds of lines of code, deploy it and fund the contract, it’s a scam

  • @PettyEmmy
    @PettyEmmy Před měsícem

    I love this video

  • @marmarbinkz7051
    @marmarbinkz7051 Před měsícem

    When I click totalAssets i get the message "execution reverted. 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." is that ok?

  • @Lerxsty2112
    @Lerxsty2112 Před 2 měsíci

    I would love to follow the vid but I keep getting errors at "npx create-next-app vending-machine-app". Node JS is installed (and rebooted). Created a PROJECTS\vending-machine-dapp folder and ran OPEN GIT BASH HERE from inside the folder just like the vid shows. 7 npm errors stating various things like "no such file or directory". I don't know what else to do besides just try to code everything in VS Code but then I wouldn't have the other dependencies installed. Anyone?

  • @marmarbinkz7051
    @marmarbinkz7051 Před 2 měsíci

    DUDE THANK YOU FOR THIS! GIVE US MORE ERRORS!

  • @dominiciyasele9865
    @dominiciyasele9865 Před 2 měsíci

    Hi One question pls; if I want to deploy the dex contract on the mainnet, would it cost me the 1500 USDC and 1500 DAI as it's done in the video using the test tokens? If no, how much minimum would it reasonably cost?

  • @tylerbarclay629
    @tylerbarclay629 Před 2 měsíci

    Hello, thanks for the video. Question: how would we do a blue green switchover after cloning our elasticbeanstalk environment and we have deployed a new version of the application?

  • @enriquecocinero
    @enriquecocinero Před 2 měsíci

    Hi, how can I contact you for a project?

  • @user-to8vl8cb5x
    @user-to8vl8cb5x Před 2 měsíci

    when attempting deploying the contract, im getting error HH601: "Script scripts/deployFlashLoan.js doesnt exist." How would i fix this? any help would be greatly appreciated.

    • @0xmissiontomars
      @0xmissiontomars Před měsícem

      make sure the file is in it's own folder called "scripts" no quotes, it's correctly spelled with .js at the end and make sure your code is saved so it's updated

  • @McGyans
    @McGyans Před 2 měsíci

    can you automate the approval process so it acts as a stand alone bot

    • @dadsquad_8914
      @dadsquad_8914 Před měsícem

      That’s a whole different thing and a lot of bot coding but yes you can

  • @Pjaming
    @Pjaming Před 2 měsíci

    So how do you load the coin to main net and on crypto exchanges?

  • @OnlineTips365
    @OnlineTips365 Před 2 měsíci

    Hi sir i want to make this project can u support i pay kindly Whatsapp or maill address

  • @satria22138
    @satria22138 Před 2 měsíci

    thanks bro full value

  • @adonides
    @adonides Před 2 měsíci

    11:08 Why does the message “infinite gas 733800 gas” appear to me? How can I avoid this? Thanks!

  • @abhinavcv5086
    @abhinavcv5086 Před 2 měsíci

    36:44 You forgot to put the lotteryId next to the lotteryHistory. If you had done that there was no need to create another utility function!

  • @Arjun147gtk
    @Arjun147gtk Před 2 měsíci

    7:58 VS code implementation

  • @rizauc58
    @rizauc58 Před 2 měsíci

    GREAT STUFF. I FOUND THIS LOOKING FOR V3 TO USE ON BROWSER. IT'S SO ANNOYING THAT THERE IS ANDROID APK, EXTENSIONS FOR CHROME, BROWSERS, EACH HAVING THEIR OWN VERSION OF THE SAME WALLETS, EXCHANGES AND THEN THROW IN WELL EXECUTED FAKES AND IT'S HIGH CHANCE OF GETTING SCAMMED SOMEWHERE ALONG THE LINE. I MIGHT HAVE TO WRITE ANOTHER PARAGRAPH BUT I THINK THIS IS IMPORTANT... PLEASE EXPLAIN ABOUT THE HIDDEN TOKENS IN OUR WALLETS MOSTLY POLYGON ACCESS,AVEE, MANY OTHERS WITH WEBSITE FOR THE CURIOUS ADVERTISED . THEY ARE ALWAYS AT 0 VALUE I'M SURE PLENTY OF PEOPLE GO TO THE SCAN PAGES AND LOOK AROUND, MESS AROUND. LOOKS LIKE THINGS CAN BE COPY PASTED, CLICKED ON JUST ONE BIG PHISHING LANDMINE. FAKE PHISHING IS A PREVALENT ADDRESS. I SAW THAT WORMHOLE HAD TONS OF THIS ALL OVER. IS IT THAT THEY PUT THESE TOKENS ON CONTRACTS TO GO IN IT'S WALLETS TO SCALE THE BLOCKCHAIN ON THE OBLIVIOS. THEN GO LEGIT LIKE WORMHOLE BECAUSE OF THE HUGE NETWORK THEY CARVED OUT. OR IS IT JUST LEFT OVER EVIDENCE OF MASS THEFT. IS IT BOTH OR MAYBE I DON'T KNOW WHAT I'M LOOKING AT. I KNOW I DON'T LIKE WORTHLESS TOKENS IN MY WALLET THAT INFOM ME OF AIRDROPS AT SITES THAT MOSTLY THERE'S NOTHING AT. IF THEY CAN GET THEM IN MY WALLET ALBEIT THROUGH THE CONTRACT THAT DOESN'T HAVE TO BE HIDDEN TO THE LAMEN ENTHUSIAST. THESE COINS ARE PROGRAMMABLE NO? ERC THAT'S THEIR WHOLE THING AND THE AI TOKENS. IN OUR WALLETS THEY COULD DRAIN THEM WHENEVER IF THAT WAS THE GOAL NO? THANK YOU IN ADVANCE FOR THE ANSWER TO THIS...

  • @AsadAli-ye8ns
    @AsadAli-ye8ns Před 2 měsíci

    these days there are some peoples making 5k with just 400$??? so i dont understand why your profit was very less

  • @prchaser2081
    @prchaser2081 Před 2 měsíci

    Is this still working?

  • @jakovpavlov6268
    @jakovpavlov6268 Před 2 měsíci

    I'm trying this on June 2024 but it does not compile, giving errors about abstract contract, I tried to fix but then got other errors and didn't want to mess up the code.