Coder Social home page Coder Social logo

mikespa / defi-project Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 1.93 MB

DeFi App where users can deposit ERC20 token and earn a yield

Solidity 31.67% Python 50.85% HTML 0.77% TypeScript 16.55% CSS 0.16%
defi ethereum solidity flashloan aave brownie compound aave-protocol smart-contracts decentralized-applications

defi-project's Introduction

DeFi Project

Staking Dapp with front-end that allows users to stake various ERC20 tokens and earn a yield in a custom token ProjectToken. The contract interact with Aave and Compound to deposit the token received from the users and earn a yield.

  • ERC20 Token: ProjectToken.sol
  • Staking contract: StakingContract.sol, current version on kovan: 0x31d314c0eC0A3d78Ce559D575DB2072334d5F354
  • Interface to interact with lending protocol: ILendingProtocol
  • Implementation of that interface for Aave and Compound.
  • Unit tests for every functions
  • Integrations test on Kovan testnet

Front-end

TODO

  • Remove contracts not related to StakingContract: flashloan stuff, uniswap, ...
  • get second account and differentiate between deployer and user in integratioins tests
  • rewrite integration test for new implementation
  • add nicer interface for front-end: graphs with token staked, yield earned, ...

Token

  • Token: deployment script
  • Token: tests
  • better way of issuing token to stakers

Staking Contract

  • deploy script
  • test
  • add Aave deposit/withdraw
  • test "
  • proxy to deposit on aave or compound, contract that take care of sending token x to one protocol and x to another

Lending Protocol interaction

  • Add Aave interaction
  • Aave: deployment script
  • Aave: tests
  • Add Compound interaction
  • C: deployment script
  • C: tests
  • Lending protocol Interface
  • Adapt contract to use several lending protocol
  • security/error handling

Others

  • DAO

defi-project's People

Contributors

mikespa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

defi-project's Issues

Starknet issue

Hi Mike,

I'm Jeff, a Golang/Solidity developer from 1token.trade. I came across your project while researching Solidity proxy contracts and noticed that you're potentially eligible for an airdrop of 1000 STRK tokens. I thought I'd give you a heads-up in case you haven't claimed them yet. You can check and claim your tokens using your GitHub ID here: https://provisions.starknet.io/

Best,
Jeff

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.