Coder Social home page Coder Social logo

fuse-flywheel's Introduction

Fuse Flywheel

The Fuse-specific compatibility modules to add flywheel v2 to the existing Fuse comptroller.

The FuseFlywheelCore is just a wrapper around FlywheelCore with all transfer hooks and identifiers overloaded for backward compatibility.

Adding Flywheel to Fuse

  1. Deploy FuseFlywheelCore and configure with desired rewardToken, rewards and booster modules. If the rewards and booster need to reference core, set to 0 initially on core. After deploying, use the setter functions to re-point core to them.
  2. Add the flywheel by calling comptroller._addRewardsDistributor(flywheelCore) on the Fuse pool Comptroller.
  3. Ensure that the desired markets are added on the flywheel core by calling strategy.addStrategyForRewards(market)
  4. Make sure the rewards module is configured and seeded with rewardToken if needed.

Using the optional plugin rewards modules

Plugin rewards modules pass incentives through from Fuse strategies or other sources back to depositors via flywheel. A great example is the Convex Fuse Pool

If the rewards are sent straight to depositors, for example by merkle drop, use the CERC20RewardsDelegate to approve the flywheelRewards module for each rewardToken

If the rewards come from an ERC-4626 plugin strategy, use the CERC20PluginRewardsDelegate to approve the flywheelRewards module for each rewardToken. This should be upgraded from a CERC20PluginDelegate.

Because approvals are cumulative and remain active on the proxy until used, this process can be repeated by applying iterative _becomeImplementation calls on the same RewardsDelegate to add support for multiple flywheels and reward tokens.


Powered by forge-template

fuse-flywheel's People

Contributors

sriyantra avatar vminkov avatar frankieislost avatar refcell avatar onbjerg avatar joeysantoro avatar brockelmore avatar stillmatic avatar thomas-waite 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.