Giter Site home page Giter Site logo

0xmilenov-vault's Introduction

0xMilenov Vault

Introduction

The Vault is a state-of-the-art lending vault implemented in Solidity and designed to run on the Ethereum blockchain.
It leverages widely recognized security practices and has been audited to ensure it conforms to industry standards.
This vault operates by minting and burning share tokens in response to user deposits and withdrawals, respectively.

Features

  • The vault supports any ERC20 compliant token.
  • Secured against reentrancy attacks for safety in transaction ordering.
  • Utilizes OpenZeppelin's Ownable for administrative actions.
  • The shares are standard ERC20 tokens, ensuring wide compatibility.

Security

  • The contract follows the best security patterns.
  • It uses SafeERC20 from OpenZeppelin to safely interact with ERC20 tokens.
  • Inherits ReentrancyGuard to protect against reentrancy attacks.

Setup and Deployment

To deploy the Vault, you will need an Ethereum wallet and enough ETH to cover the deployment gas fees.
You will also need the address of the ERC20 token you wish to use with the vault.

Update the .env file with your wallet information and RPC URL.
Run truffle migrate to deploy the contracts to the desired network.

Interacting with the Contract

  • Deposit: To deposit tokens, call the deposit function with the amount and the minimum shares you wish to mint.
  • Withdraw: To withdraw tokens, call the withdraw function with the amount of shares you wish to burn.
    Ensure that you approve the vault to spend your ERC20 tokens before interacting with the deposit function.

Contributing

We welcome contributions from the community. If you find a bug or have a feature request, please open an issue or create a pull request.

0xmilenov-vault's People

Contributors

0xmilenov avatar

Watchers

 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.