In this course, we will explore how to use the Rust language and the OpenZeppelin ERC4626 standard to create DeFi (Decentralized Finance) smart vaults. Through this course, we aim to enable students to: 1. Understand the workings of smart vaults and their applications in DeFi projects. 2. Acquire the skills to develop smart contracts using Rust.
Language
Rust
Total Length
0.9h
Part of Learning Track
Build on Arbitrum + 1
This chapter will cover Arbitrum Stylus Smart Vaults Concept
This unit discusses how to prepare a Rust project to make it suitable for running in a smart contract environment.
This section introduces how to import several basic tools and modules to help us build our own smart contracts.
This section discusses setting up the basic parameters for smart contracts, especially the necessary steps when constructing Vaults token contracts that adhere to the ERC20 standard.
This part introduces how to create a structured storage system for smart contracts and how to set up the contract's basic functionalities.
This section covers how to implement the basic functionality of the Vault struct.
This section introduces how to add a deposit function to a smart contract, allowing users to deposit assets and receive token shares in return.
This section introduces how to add a withdraw function, allowing users to withdraw assets from the contract.
This section introduces how to implement two basic query functions within a smart contract, allowing external users and contracts to access core information about the contract.
This chapter will learn how to build and deploy programs.
Language
Rust
Total Length
0.9h
Part of Learning Track
Build on Arbitrum + 1