

Github GitHub - iearn-finance/yearn-protocol: Yearn smart contracts
source link: https://github.com/iearn-finance/yearn-protocol
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Yearn Protocol
Yearn Protocol is a set of Ethereum Smart Contracts focused on creating a simple way to generate high risk-adjusted returns for depositors of various assets via best-in-class lending protocols, liquidity pools, and community-made yield farming strategies on Ethereum.
Before getting started with this repo, please read:
- Andre's Overview Blog Post, describing how yearn.finance works.
- The Delegated Vaults Blog Post, explaining how the delegated vaults work.
- yETH Vault Explained, describing how the yETH vault works.
Requirements
To run the project you need:
- Python 3.8 local development environment and Node.js 10.x development environment for Ganache.
- Brownie local environment setup. See instructions: ETH Brownie.
- Local env variables for Etherscan API and Infura (
ETHERSCAN_TOKEN
,WEB3_INFURA_PROJECT_ID
). - Local Ganache environment installed with
npm install -g [email protected]
.
Installation
To run the yearn protocol, pull the repository from GitHub and install its dependencies. You will need yarn installed.
git clone https://github.com/iearn-finance/yearn-protocol cd yearn-protocol yarn install --lock-file
Compile the Smart Contracts:
brownie compile
Tests
Run tests:
brownie test -s
Run tests with coverage:
brownie test -s --coverage
Formatting
Check linter rules for *.json
and *.sol
files:
yarn lint:check
Fix linter errors for *.json
and *.sol
files:
yarn lint:fix
Check linter rules for *.py
files:
black . --check --config black-config.toml
Fix linter errors for *.py
files:
black . --config black-config.toml
Security
For security concerns, please visit Bug Bounty.
Documentation
You can read more about yearn finance on our documentation webpage.
Discussion
For questions not covered in the docs, please visit our Discord server.
Recommend
-
86
EDEN-smart-contracts - EDEN - EDN Smart Token & Smart Contracts
-
10
Yearn Finance's Merger Spree Yearn has joined forces with several DeFi projects. What does it mean for its ecosystem?
-
12
yearn.finance x Hegic: Options
-
14
DeFi projects often allow community members to govern the future of the project. For YFI, the asset of Yearn.Finance, a crucial vote is coming up. The proposal to increase the YFI supply by 1,000 doesn’t seem to go over well with the communit...
-
16
yearn.finance锁仓量超30亿美元 - 律动BlockBeats 繁体中文 English(Google translation)
-
7
DataYearn FinanceEnglishYearn FinanceYFI
-
5
Developer talks new vaults, products, and verticals – HodlalertYearn.Finance in Miami: Developer talks new vaults, products, and verticals...
-
7
YFI Price Index and Live ChartMarket Cap$750.67M24H Volume$101.11MYearn Finance Price24H Open$20,638.88
-
8
本次攻击事件是由于 Yearn Finance 的 yUSDT 合约错误的配置导致的。 据慢雾区情报,2023 年 4 月 13 日,去中心化收益聚合平台 Yearn Finance 遭到攻击,攻击者获利超千万美金。慢雾安全团队以简讯的形式分享如下:
-
6
Unveiling the Root Cause of...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK