Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Latest commit

 

History

History
47 lines (38 loc) · 3.14 KB

README.md

File metadata and controls

47 lines (38 loc) · 3.14 KB

LIDO / 1inch co-incentivization integration

Smart-contracts that implements rewarding management for 1inch liquidity pool (a part of co-incentivization).

Flow

Deployment, initalization and usage flows are described in separate FLOW document.

Core contracts

RewardsManager.vy

Contract follows principles from other repositories: lidofinance/staking-rewards-manager, lidofinance/balancer-rewards-manager and lidofinance/staking-rewards-sushi.

Following parts are adapted for compatibility with 1inch liquidity protocol FarmingRewards contract:

Installation

To use the tools provided by this project, please pull the repository from GitHub and install its dependencies as follows. It is recommended to use a Python virtual environment.

npm install
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements-dev.txt

Compile the smart contracts:

brownie compile # add `--size` to see contract compiled sizes

Test

To test on mainnet fork you neet to set your Infura project ID first:

export WEB3_INFURA_PROJECT_ID=YourProjectID

Run tests only:

brownie test

Run tests with evaluating coverage and gas usage:

brownie test --coverage --gas -v