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.
- Binance IDE
- Metamask (connected to BSC Binance Smart Chain)
Open the MetaMask Little Fox and select the c