GithubHelp home page GithubHelp logo

engkudigital / v-cred-avalanche Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vijayengineer/v-cred-avalanche

0.0 1.0 0.0 968 KB

This project aims to bring flashloans to Avalanche blockchain. The core concept V-Cred is the design pattern of having two

Solidity 85.35% JavaScript 14.65%

v-cred-avalanche's Introduction

V-Cred: Enabling flash loans in Avalanche

Disclaimer: Flashloans are an advanced concept, and I have not added all safeguards since this is an MVP. Please do not use it in production.

This project aims to bring flashloans to Avalanche blockchain. The core concept V-Cred aims to use safer flash loan design pattern, and implementing it on side-chains. This enables incredible use cases like 1000x leveraged trading! I created a detailed article here: https://medium.com/p/ebfe5bdd70d9 Avalanche blockchain comprises of P-Chain, X-Chain and C-Chain. C-Chain or contract chain is evm compatible, contracts can deployed similar to mainnet using the same truffle toolkit. However there are important differences in the configuration. Since Ethereum bridge and Oracle support were not available at the time of this project, this is a template. Cred token an ERC-20 token was minted and was used as a medium of exchange to deploy and demonstrate flash loan capabilities.

The repository consists of solidity contracts as follows:

  1. TokenCreator: Mints Cred token
  2. TruffleConfig to deploy on Fuji testnet
  3. Flashloan contract which inherits Ava flash borrower
  4. Deposit pool contracts which inherits AVa flash lender

alt text

v-cred-avalanche's People

Contributors

vijayengineer avatar

Watchers

James Cloos avatar

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.