https://github.com/alejoacosta74/ethereum-farming-example
DeFi Farming contract that rewards investors with ARG coins after staking mDAI coins
https://github.com/alejoacosta74/ethereum-farming-example
dai defi defi-application ethereum javascript solidity
Last synced: 3 months ago
JSON representation
DeFi Farming contract that rewards investors with ARG coins after staking mDAI coins
- Host: GitHub
- URL: https://github.com/alejoacosta74/ethereum-farming-example
- Owner: alejoacosta74
- Created: 2021-01-05T22:36:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-09-04T03:23:35.000Z (10 months ago)
- Last Synced: 2025-09-04T05:41:23.122Z (10 months ago)
- Topics: dai, defi, defi-application, ethereum, javascript, solidity
- Language: JavaScript
- Homepage:
- Size: 666 KB
- Stars: 357
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DeFi farming example
## Overview
This project implements a DeFi application consisting of a "Farming contract" that issues new ARG coins
to investors that deposit money for a certain amount of time

## Web APP view

## Install
Clone repository and install dependencies and devDependencies:
```bash
$ npm install -g truffle
$ npm install -g ganache-cli
$ cd DeFi_example
$ npm init
$ npm install
```
## Usage
Start ganache-cli development ethereum network:
```bash
$ ganache-cli &
```
On another terminal, compile and deploy solidity contracts to Ganache development network:
```bash
$ truffle compile
$ truffle migrate
```
On another terminal, start the web server:
```bash
$ npm run start
```
To use the Web DeFi APP go to http://localhost:3000/ in your browser
To simulate the issuing of ARG tokens run the script:
```bash
$ truffle exec ./scripts/issue-token.js
```
## Dependencies
You will need to install MetaMask in your browser in order to interact with the React Web App!!