Free views, likes and subscribers at YouTube. Now!
Get Free YouTube Subscribers, Views and Likes

ERC4626 Vault Smart Contract tutorial | DeFi Vault tutorial

Follow
Block Explorer

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:
https://remix.ethereum.org/

Metamask wallet:
https://metamask.io/

Ethereum unit converter:
https://ethconverter.com/

Sepolia faucets:
https://sepoliafaucet.com/
https://www.infura.io/faucet/sepolia

ERC4626 info:
https://eips.ethereum.org/EIPS/eip4626
https://ethereum.org/en/developers/do...
https://docs.openzeppelin.com/contrac...

implementations:
https://github.com/transmissions11/so...
https://github.com/OpenZeppelin/openz...

ERC4626 Tutorial GitHub repo:
https://github.com/jspruance/erc4626...

Imports for remix:

Vault.sol
import "https://github.com/OpenZeppelin/openz...";
import "https://github.com/jspruance/erc4626...";

OceanToken.sol
import "https://github.com/OpenZeppelin/openz...";

posted by chudzinajq