npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@fei-protocol/fuse-flywheel

v0.0.0

Published

Fuse specific compatibility modules for Flywheel V2

Downloads

3

Readme

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