OpenLeverage Smart Contracts, including lending pools, margin trade, treasury, farming pool, DAO-based governance, OLE ERC-20 token, and time-weighted vote escrow xOLE components.
The OpenLeverage Protocol comprises Smart Contracts in Solidity for permissionless lending and borrowing assets for leverage trading with DEX integration.
Before starting this repo, please read the OpenLeverage Documentation, describing how OpenLeverage works.
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
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
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.
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