Code Monkey home page Code Monkey logo

smart-contracts's Introduction

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:

  1. Accept deposits
  2. Process withdraws
  3. Handle compounding
  4. 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:

  1. Accept multiple deposit types
  2. Process withdraws
  3. Manage rebalances
  4. Take a fee

smart-contracts's People

Contributors

0xwoodpecker avatar aslowcheetah avatar jack-zoofilabs avatar midnight-commit avatar sanghren avatar sidduhere avatar simednba avatar snow-farmer avatar witfyl-ravped avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.