Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fei-protocol/fuse-flywheel

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fei-protocol/fuse-flywheel

Fuse specific compatibility modules for Flywheel V2

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 18 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc