Skip to content

Decentralized finance (DeFi) platform that enables users to lend and borrow digital assets from each other

Notifications You must be signed in to change notification settings

Trong-Tra/DeFi_Loan

Repository files navigation

DeFi_Loan

DeFi_Loan

A platform powered by blockchain that enables users to lend and borrow digital assets from each other.


About the projects

  • Welcome to DeFi_Loan, a blockchain create to allow financial transaction in which one party, the borrower, receives a certain amount of assets, such as money or digital tokens, and agrees to pay back the loan amount plus a fee to the lender by a predetermined deadline.
  • With DeFi_Loan, the borrower must provides collateral, which may be seized by the lender if the borrower fails to pay back the loan as agreed.
  • DeFi_Loan also provide liquidate feature in which the lender allows to sell of the borrower collateral when they are fail to repay the loan by the specific deadline.
  • One of the key benefits of DeFi is that it allows end users to access financial instruments and services quickly and easily, without the need for complex onboarding processes or the submission of personal documents such as passports or background checks.

Built with


DeFi_Loan is a blockchain built using Cosmos SDK and Tendermint and created with Ignite CLI.

Get started

Run the chain with this command:

ignite chain serve

After the blockchain is running you need to have the daemon file of the chain in order for it to perform queries or call functions.

First, find your daemon file in the your compiled go files.
Put it in the cmd/loand and called it.
cd into the file (cmd/loand) and from there you can perform queries or call functions. For example:

./loand tx loan request-loan 1000token 100token 1000foocoin 500 --from alice --chain-id loan

Note: Use config.yml as a mock database, add/create the valid amount of token to perform your desire action.

Configure

The blockchain can be configured with config.yml. To learn more, see the Ignite CLI docs.

Web Frontend

Additionally, Ignite CLI offers both Vue and React options for frontend scaffolding:

For a Vue frontend, use: ignite scaffold vue For a React frontend, use: ignite scaffold react These commands can be run within your scaffolded blockchain project.

For more information see the monorepo for Ignite front-end development.

Learn more


Developer note: Lasted update: 3/6/2024
  • This chain is for studying purpose, not recommend to be used as mainnet or testnet.
  • The codebase may have bugs that could potentially lead to loss of funds. Use at your own risk.
  • Functions and queries are fully tested, the repository does not include the daemon file, please follow the instruction or contact with the repo-owner for further assistance.

About

Decentralized finance (DeFi) platform that enables users to lend and borrow digital assets from each other

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages