This is the code repository for Building Full Stack DeFi Applications, published by Packt.
A practical guide to creating your own decentralized finance projects on blockchain
Enter the world of Decentralized Finance (DeFi) with Building Full Stack DeFi Applications. Understand how this blockchain-based financial technology, designed to manage crypto assets, runs independently without centralized financial institutions such as banks and brokerages, eliminating the fees that banks and other financial companies charge for using their services. This book will show you how DeFi solutions are built with smart contracts running on blockchains and how they allow users to gain and earn crypto assets, based on the trust of the smart contracts.
This book covers the following exciting features:
- Understand the key concepts and principles of DeFi and how it works Get to grips with smart contract development to solve complex problems Build your experience in designing, building, and deploying Web3 applications Implement liquidity pools and swapping features for seamless crypto exchanges Develop staking and farming features for DeFi applications Create smart contracts for crypto loans integrated with Web3 libraries
If you feel this book is for you, get your copy today!
All of the code is organized into folders.
The code will look like the following:
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./interfaces/ITokenPair.sol";
contract TokenPair is ITokenPair, ERC20 {
Following is what you need for this book: If you are a blockchain developer experienced in Web3 and Solidity development, or anyone interested in learning about blockchain and DeFi technologies, this book is for you. Product managers, executives, and other management professionals looking to start or delve into a DeFi project will also benefit from this book, as will developers and architects with basic blockchain knowledge who want to advance their skills in building full-stack DeFi products. Experience with Solidity, JavaScript, and Web3 will help you get the most out of this book.
With the following software and hardware list you can run all code files present in the book (Chapter 1-14).
Chapter | Software required | OS required |
---|---|---|
1-14 | Solidity | Windows, macOS, or Linux |
1-14 | Node.js | Windows, macOS, or Linux |
1-14 | React.js | Windows, macOS, or Linux |
1-14 | Ethers.js | Windows, macOS, or Linux |
1-14 | Hardhat | Windows, macOS, or Linux |
1-14 | Material UI | Windows, macOS, or Linux |
Samuel Zhou has over 15 years of software engineering experience in top high tech companies including being a blockchain developer as his hobby since 2018. In 2022, Samuel turned his enthusiasm on blockchain technology into a business by founding TiFi, which is a silicon valley based startup that builds e-Commerce platform on blockchain and brings blockchain to everyday life. Over there he has created TiFi Token that offers token rebates so people can get cash back when spending the token. Also he has built TiFi Bank which is a DeFi application that offers crypto saving, lending, trading, staking and liquidity management features. Samuel holds a Master Degree and a Bachelor Degree in Computer Science.
Please follow the instructions in README.md
in the defi-apps
folder.