harvest-finance / harvest

Bread for the people!
217 stars 94 forks source link

Gitcoin Bounty: Harvest Ecosystem Integrations and Enhancements #15

Closed breadforthepeople closed 3 years ago

breadforthepeople commented 3 years ago

Harvest Ecosystem Integrations and Enhancements

Prize Bounty

Three prizes will be awarded for this bounty: the first, second, and third place, as per the judges’ opinion reflecting the judging criteria. The prize amounts are $3000, $1500, and $500 respectively, payable in USDC. Additional bonuses and rewards may be awarded as per judges’ discretion.

Challenge Description

The Harvest Ecosystem would benefit from integration with external protocols and enhancement within itself. The challenge is intended to be smart-contract focused, but an optional front-end component will be considered by the judges. Here we outline a few ideas, but feel free to explore other possibilities that you think might benefit Harvest and DeFi in general!

(1) Universal Token Liquidator. The Harvest vaults use investment strategies to farm yields in the form of governance and other reward tokens from external protocols. These tokens are then converted into the underlying asset of the vault. Any optimization of such a liquidation is therefore interesting for both the protocol and the farmers. A smart contract that is able to liquidate one token to another in one or multiple specified decentralized markets (aiming for a slippage reduction) is one way of optimizing the process. The contract should be able to switch between different markets (Uniswap/Sushiswap/etc) using an argument or a smart contract call. Use in the context of the Harvest protocol: reward token liquidation. For example, the SUSHI token, after being farmed, could be liquidated on either Sushiswap or Uniswap. Currently this logic is a bit scattered across strategies and the so-called feeRewardForwarder smart contract. The Universal Token Liquidator could centralize and combine the logic in a single place.

(2) Autostaking RewardPool for Multiple Assets. Synthetix’s reward pool is great! But there are a lot of enhancements that we could do. Currently, Harvest rewards users with $FARM when they stake their assets. Stakers into various reward pools (for example, DAI pool have to claim their $FARM rewards manually and stake these into the profit sharing auto-staking pool that allows users to stake $FARM and earn $FARM in order to maximize their returns. A potential improvement would be for the pool to automatically stake the $FARM earned by staking “normal” assets into the Profit Sharing Pool while maintaining reasonable gas consumption for staking and unstaking assets. One possible approach is to modify the MasterChef contract from SushiSwap (it is a generalized reward pool) and add the autostaking feature to it.

(3) Curve Token Converter. Currently, in order to deposit into Curve vaults (crvCompound, crvUSDN, etc.), users are required to go to the curve.fi website, obtain the tokens, then switch back to the Harvest website, and deposit. To facilitate the UX, a Curve token converter could be introduced. This would include a set of smart contracts and, potentially, a front-end component that would help users provide liquidity on Curve and then immediately contribute to one of Harvest’s vaults.

Submission Requirements

Judging Criteria

Winner Announcement Date

The announcement date is to be determined, however, would be shortly after the Hackathon ends.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 5000.0 USDC (5000.0 USD @ $1.0/USDC) attached to it.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 5000.0 USDC (5000.00 USD @ $1.0/USDC) has been submitted by:


gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 5000.0 USDC (5000.00 USD @ $1.0/USDC) has been submitted by:

  1. @affaxltd
  2. @masaun
  3. @farmer69420

@breadforthepeople please take a look at the submitted work:


gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 5000.0 USDC (5000.00 USD @ $1.0/USDC) attached to this issue has been approved & issued to @affaxltd.

breadforthepeople commented 3 years ago

This has been completed. Closing.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 8 months, 3 weeks ago. Please review their action plans below:

1) sunnyrk has started work.

We will make some improvisation for auto staking farm tokens for harvest finance 2) affaxltd has started work.

Universal Liquidator will allow any smart contract to easily swap any token for any token through the smart contract. 3) masaun has started work.

Autostaking reward pool for multiple assets 4) farmer69420 has started work.

provide liquidity on Curve and then deposit to Harvest vault to save farmers time and gas

Learn more on the Gitcoin Issue Details page.