pure-defi
A lending Defi that provides functions such as deposits, borrowings, withdrawals, repayments and asset management
视频
描述
- Lending Function: It allows users who provide liquidity to borrow other tokens in proportion to the corresponding value after depositing tokens within a specific collateral value range based on certain collateral and borrowing rates. Moreover, the interest rates will be changed according to the deposit and borrowing operations, so that the amounts of deposits and borrowings can accumulate interest based on the interest rates to balance the market and reflect the asset situation.
- Value Acquisition Function: A reward mechanism is established for users who deposit funds for a long term and provide liquidity. Each time a deposit is made, it will check the time limit of the previous deposit. If the conditions are met, custom tokens with time-weighted rewards will be given, which can be used in the subsequent ecosystem of the project.
- Asset Viewing and Management Function (for Users): Users can view the details of different deposited tokens, the total deposit value and the information of the rewards obtained in the "My Assets" section. When there are tokens borrowed, withdrawals will be restricted to ensure the security of funds.
- Asset Viewing and Management Function (for Administrators): Administrators can add assets (by filling in the token address and the corresponding oracle price feed address) and edit assets (only changing the collateral rate and the borrowing rate) in the "Asset Management" section to meet users' needs for different tokens.
- Market Operation Function (Deposit and Borrow): Users can conduct token deposit and borrowing operations through the "Market" menu. The first use of a token requires authorization, and it is impossible to borrow tokens before depositing any tokens.
- Market Operation Function (Price Information Display): The card column of the "Market" menu obtains and displays the real-time price information of tokens with the help of the API3 oracle, providing a value reference for lending and other operations.
本次黑客松进展
Firstly, determine the general direction, specific functions and technical implementation of the project. Then carry out the development according to the defined functional points and use Foundry for testing. Finally, conduct the joint debugging of the front end and the back end.