Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 756 Bytes

FEATURES.md

File metadata and controls

28 lines (17 loc) · 756 Bytes

Beefy Strategy Features

Intro

This is a list of features that any new strategy should implement before being displayed in the Beefy UI.

1. GasThrottler

Features

GasThrottler

Designed to protect regular harvesters from being exploited by front-running bots. More info on the rationale behind it and design at issue #37

How to implement

Just import the GasThrottler contract and have your strategy contract inherit from it. The main harvest function should include the gasThrottle modifier.

import  "../../utils/GasThrottler.sol";

contract StrategyExample is GasThrottler {

    function harvest() external gasThrottle {
        ...
    }
}