Yield Yak
Automated yield farming strategies for Avalanche.
Getting Started
npm install
cp .env.sample .env
npx hardhat compile
Architecture
YakStrategies
YakStrategies are an autocompounding primitive. They are designed to be platform-neutral and maximize returns to users from compounding strategies.
YakStrategies are designed to bootstrap growth with fees that may be changed based on ecosystem conditions.
Developers can generate revenue by writing YakStrategies.
Developing New Strategies
Strategies should inherit from YakStrategy.sol
. Most strategies will:
- Accept deposits
- Process withdraws
- Handle compounding
- Take a fee
Strategies should implement the necessary behavior to generate a return on deposits.
Strategy developers have the ultimate control over functionality. Yield Yak may choose to support the underlying strategies with platform integrations.
YakVaults
YakVaults are designed to be flexible user interfaces for YakStrategies. YakVaults may be comprised of many YakStrategies.
Example Implementation
The example implementation YakVault.sol
is a managed vault, designed to meet user preferences for risk/reward based on a manager.
Most YakVaults will:
- Accept multiple deposit types
- Process withdraws
- Manage rebalances
- Take a fee