vijayengineer / V-Cred-Avalanche

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Solidity 85.3%Language:JavaScript 14.7%