Git Product home page Git Product logo

leverage-solidity's Introduction

Node.js CI

OpenLeverage Protocol

The OpenLeverage Protocol comprises Smart Contracts in Solidity for permissionless lending and borrowing assets for leverage trading with DEX integration.

  • Through provided API, anyone can create a pair of lending pools for a specific token pair.
  • LToken, similar to CToken of Compound, is an interest-bearing ERC-20 token to be received by the fund supplier when they supply ERC-20 tokens to the lending pools. The LToken contracts track these balances and algorithmically set interest rates with a kinked model for borrowers.
  • All margin trades will be executed against the liquidity pool of DEX, like Uniswap.
  • Risk is calculated with real-time price from AMM.
  • Positions are protected with OnDemand Oracle utilizing TWAP from AMM.

Before starting this repo, please read the OpenLeverage Documentation, describing how OpenLeverage works.

Installation

To compile OpenLeverage Smart Contracts, pull the repository from GitHub and install its dependencies. You will need npm installed.

git clone https://github.com/OpenLeverageDev/openleverage-contracts.git
cd openleverage-contracts
npm install
truffle compile

Testing

To run the tests, you will need ganache-cli:

npm install -g ganache-cli

Truffle contract tests are provided under the tests directory. run:

truffle test

Audits

Licensing

The primary license for OpenLeverage is the Business Source License 1.1 (BUSL-1.1), see LICENSE, effectively a time-delayed GPL-2.0-or-later license. The license limits the use of the OpenLeverage source code in a commercial or production setting for up to two years, at which point it will convert to a GPL license into perpetuity.

Discussion

For questions about the protocol, visit us on Discord to discuss.

For security concerns, please visit OpenLeverage Security or email [email protected].

_© Copyright 2021, OpenLeverage Team

leverage-solidity's People

Contributors

algosupport 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.