2022-07-06
1700
#blockchain
Joel Adewole
123112
Jul 6, 2022 ⋅ 6 min read

How to write an ERC-4626 token contract for yield-bearing vaults

Joel Adewole Jamstack web developer | Technical writer | React | Python

Recent posts:

React Native Layout Management With Yoga 3.0

React Native layout management with Yoga 3.0

Explore layout management in your React Native apps with the latest release of React Native v0.74 and Yoga 3.0.

Andrew Baisden
May 30, 2024 ⋅ 8 min read
A Guide To Javascript Parser Generators

A guide to JavaScript parser generators

Explore three JavaScript parser generator libraries and the benefits of creating custom parsers for specific project needs.

Yashodhan Joshi
May 30, 2024 ⋅ 16 min read
Using Rust And Axum To Build A Jwt Authentication Api

Using Rust and Axum to build a JWT authentication API

Learn to build a basic JWT authentication system with Rust and Axum, including setting up the routes, handlers, and the middleware system.

Eze Sunday
May 29, 2024 ⋅ 9 min read
Building A Customizable Dashboard With Dashy

Building a customizable dashboard with Dashy

Dashy helps us create beautiful, customizable, modern dashboard pages with web service links and widgets.

Shalitha Suranga
May 29, 2024 ⋅ 10 min read
View all posts

One Reply to "How to write an ERC-4626 token contract for yield-bearing vaults"

  1. Great tutorial – really enjoyed it!

    One question – what is the purpose of the ‘shareHolder’ mapping here:

    // a mapping that checks if a user has deposited
    mapping(address => uint256) shareHolder;

    I would think that since each user is issued a vToken after deposit, there is really no explicit need to track deposits anymore, but I may be overlooking something. Hope to build a vault smart contract based on 4626 soon. Thanks!

Leave a Reply