Skip to content

AliWisam/1inch-rewards-manager

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 82.1%
  • Python 17.9%