Skip to content

Instantly share code, notes, and snippets.

View AliArshadswl's full-sized avatar
🎯
Focusing

Muhammad Ali Arshad AliArshadswl

🎯
Focusing
View GitHub Profile
@AliArshadswl
AliArshadswl / Cefi and Defi, What and why_1.md
Created January 8, 2021 09:01
Cefi and Defi, What and why

Cefi and Defi, What and Why?

Both Cefi and Defi provide a way for people to manage their money and each has its advantages and disadvantages.

Cefi

All over the world, people use traditional financial services every day. However, these services are provided by big banks and always have a single point of failure. CeFi is an extension of the existing financial model, but upgraded to the next level with crypto. "It alleviates one of the biggest pain points of the traditional financial system — accessibility but keeps the usability and simplicity as it's more familiar to most people." said Dashdorj. Centralization refers to a point of central control, which in the case of finance refers to banking institutions. Historically, centralization in finance was desirable as a measure and maintainer of stability in global financial processes, thought to be more secure and

@AliArshadswl
AliArshadswl / Decentralized finance.md
Last active January 8, 2021 04:55
This Gist is about Defi

Decentralized finance (Defi)

Hello everyone, this time we deploy a simple decentralized finance (Defi) smart contract project on the Binance Smart Chain (BSC) through ChainIDE. This project contains two ERC20-based tokens. We temporarily call these two tokens ChainToken and RevenueToken (hereinafter referred to as CT and RT). CT is used to simulate the digital currency held by users themselves and RT is the interest obtained after the user pledges CT. The workflow of the entire Defi project is executed by a Farm contract. The user pledges the digital currency, he/she holds into the Farm contract. The contract generates RT according to the amount of pledged by the user and returns it to the user as interest.

Tools used in the project

  1. Binance IDE
  2. Metamask (connected to BSC Binance Smart Chain)

Connection Method

Open the MetaMask Little Fox and select the c