Language
Solidity
Total Length
1.7h
Part of Learning Track
Build on Ethereum + 1
What You’ll Learn
Syllabus
Calculate Lock Interest
In this unit, we will learn how to implement the calculateLockedInterest function, which is essential for calculating the interest on locked deposits.
DepositWithLock - Section 1
We will define a data structure that effectively represents the bankbook information for each user.
DepositWithLock - Section 2
This section focuses on writing a function that enables users to lock their deposits.
DepositWithLock - Section 3
We will learn how to define the mappings necessary to store information about locked deposits and how to emit a successful deposit event.
WithdrawLocked - Section 1
The focus here is on implementing the withdrawLocked function, which will allow users to retrieve their locked deposits along with the accrued interest.
WithdrawLocked - Section 2
Calculate the total withdrawal amount in this section.
WithdrawLocked - Section 3
We will develop and implement the logic required to delete lock information from the system.
WithdrawLocked - Section 4
The final section completes the withdrawal logic, encompassing all necessary steps to process withdrawals from locked deposits.
Language
Solidity
Total Length
1.7h
Part of Learning Track
Build on Ethereum + 1