• Discover
  • Partner with us
  • Chapters
  • Blog

Build on BNB Chain - Course 3 | Smart Contract and dApp Development on BNB Chain

Introduction

Use cases

Final Project: Decentralized Car Rental Platform
Setting up BNB Chain development environment
Creating the outline of smart contract
Implementing smart contract 1
Implementing smart contract 2
Implementing smart contract 3
Implementing smart contract 4
Implementing smart contract 5
Implementing smart contract 6
Compiling smart contract
Testing contract
Dapp_walkthrough
Explaining dapp code

Final Project

Part 1: Smart Contract Development

In this final project, you will be building a Safe Smart Contract on the BNB Chain. This contract will act as a secure vault for users to lock their tokens for a specified period, earning rewards over time. Each user will have a separate compartment within the contract, ensuring individualized security and reward calculation.

Features

  • Token Locking: Users can send tokens to the contract and lock them for a defined period.
  • Reward Calculation: The contract will calculate rewards based on the time the tokens are locked.
  • Individual Compartments: Each user will have a unique compartment within the contract, ensuring personalized security and reward management.

Requirements

  1. Token Locking Mechanism: Implement a function to allow users to send tokens to the contract and lock them for a specified duration.
  2. Reward Calculation: Develop a mechanism to calculate rewards based on the locking period. Note that the contract will only calculate rewards; it will not distribute them.
  3. User Compartments: Create individual compartments for each user within the contract to manage their tokens and rewards separately.
  4. Security Measures: Implement necessary security checks to ensure that only the owner of the tokens can lock, unlock, or query their compartment.
  5. Testing: Include comprehensive test cases to validate the correctness of your code.

You should be submitting the github repo links of the smart contracts you have written. You can access the sample read.me file via this link.  

Part 2: Frontend Development

The frontend of this project will provide a user-friendly interface to interact with the Safe Smart Contract. It will allow users to lock tokens, view their compartments, and see their calculated rewards.

Requirements

  1. Lock Tokens: Create a simple interface to allow users to send tokens to the contract and lock them for a specified duration.
  2. View Compartments: Implement a feature to enable users to view their individual compartments, including locked tokens and calculated rewards.
  3. Simple Design: The frontend should be simple and intuitive, focusing on demonstrating the functionality of the contract without unnecessary complexity.

Conclusion

The BNB Chain Safe Smart Contract project offers a practical and engaging way to explore smart contract development and frontend integration. By building a secure vault for token locking and reward calculation, you will gain hands-on experience with key concepts in blockchain development. Happy coding! ⌨️

Submission

Submit your work to complete this lesson.

Join the project workspace to share your solution and receive feedback.

Previous

Lesson discussion

Swap insights and ask questions about “Build on BNB Chain - Course 3 | Smart Contract and dApp Development on BNB Chain”.

Enroll to participate
Start the course to unlock the discussion. Enrolling helps us keep conversations relevant to learners.
WebsiteDiscoverPartner with UsBlogEvents
Discover
CoursesCircleRustSoliditySolanaWeb3 FundamentalsBlockchain Basics
CompanyAbout UsBrand GuidelineFAQsTerms of UsePrivacy PolicyGDPR NoticeCookies
Don't miss any update!

Disclaimer: The information, programs, and events provided on https://risein.com is strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice, nor do we make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://risein.com disclaims any responsibility for financial decisions made by users based on the information provided here.

© 2026 Rise In, All rights reserved