ForceDAO / bounties

Apache License 2.0
2 stars 2 forks source link

Automate a DeFi Yield Farming Strategy on Polygon and AAVE #5

Open rafaviles opened 3 years ago

rafaviles commented 3 years ago

Automate a DeFi Yield Farming Strategy on Polygon and AAVE

The Bounty

We have created this guided bounty where developers can participate by automating the strategy we detail below. The idea is that developers take the strategy and automate it by building smart contracts that facilitate programmatically yield farming of this strategy.

The context

The yield farming program is a liquidity mining program for MATIC rewards, and it is used to attract deposits into Aave. Depositors can lend out their crypto assets while borrowers who are looking to borrow these assets can do so as well.

Polygon is giving out MATIC rewards so people are incentivized to participate in their network. The supported markets are AAVE, DAI, ETH, MATIC, USDC, USDT, and WBTC.

Resources

How to Deploy a Smart Contract on the Polygon Test Network

This guide will show you how to deploy a smart contract on the Polygon network leveraging Metamask and the IDE Remix. It's useful if you don't have any experience with Polygon or Solidity.

Solidity smart contract IDE and debug tools

A quick list of the development tools that you can leverage. We recommend however the setup described above.

Aave Docs

Other Polygon Resources

What makes a submission complete?

The Strategy

1. Bridge funds over to Matic

2. Deposit funds on Matic via Aave

Stables

3. Deposit yield

4. Earn by borrowing

Borrow Markets

Borrow Markets as of June 8th, 2021

5. Define Borrow Strategy

6. Deposit Borrowed USDT in CRV for Curve Rewards

curve

7. Compound Rewards

Summary

Summary

Winning Criteria

Judges

We have asked members of our community to participate as judges. They will use the criteria described above to rank all submissions. We will announce winners 2 weeks after the submission deadline.

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 has been started.

These users each claimed they can complete the work by 57 minutes from now. Please review their action plans below:

1) sunnyrk has started work.

Will work around it 2) encrobaser has started work.

We will be developing a strategy for automatic compounding of stablecoins with yield bearing strategies on Polygon as advised in the guidelines. 3) ivor222 has started work.

We will be developing a strategy for automatic compounding of stablecoins with yield bearing strategies on Polygon as advised in the guidelines.

Learn more on the Gitcoin Issue Details page.

dxganta commented 3 years ago

The net borrow interests (including MATIC rewards) have become negative for USDC, DAI & USDT in the AAVE Pool as of June 21. Will it still be a good idea to add borrowing to this strategy?

dxganta commented 3 years ago

@rafaviles

rafaviles commented 3 years ago

The net borrow interests (including MATIC rewards) have become negative for USDC, DAI & USDT in the AAVE Pool as of June 21. Will it still be a good idea to add borrowing to this strategy?

Hi @realdiganta - thanks for your question. You're only borrowing USDT which as of now is still positive. Even if it's become slightly negative, the APY you are getting from investing in the USDT loan + the Matic rewards should be higher than that. Feel free to get creative on how to avoid overall negative net APYs.

dxganta commented 3 years ago

Hey @rafaviles is it required to implement a vault contract too for the strategy?

rafaviles commented 3 years ago

Hey @rafaviles is it required to implement a vault contract too for the strategy?

Hi @realdiganta, you don't need to implement a vault. We wanted to focus on the strategy since we know you have limited time. Of course, if time allows optional components like the vault, fronted, etc. are more than welcome.

dxganta commented 3 years ago

Hey @rafaviles is it required to implement a vault contract too for the strategy?

Hi @realdiganta, you don't need to implement a vault. We wanted to focus on the strategy since we know you have limited time. Of course, if time allows optional components like the vault, fronted, etc. are more than welcome.

Thank you

abhishekr700 commented 3 years ago

@rafaviles Do we also need the smart contract to implement bridging assets or just lending/borrow on aave and curve is sufficient.

rafaviles commented 3 years ago

@rafaviles Do we also need the smart contract to implement bridging assets or just lending/borrow on aave and curve is sufficient.

@abhishekr700 The strategy (lending/borrowing) is sufficient for submission. However, the more automation you can build into it the more you’ll differentiate from other submissions.

gitcoinbot commented 3 years ago

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


Work for 10000.0 USDC (10000.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 10000.0 USDC (10000.00 USD @ $1.0/USDC) has been submitted by:

  1. @nuclearhit22
  2. @zunamilab
  3. @realdiganta
  4. @ivor222

@rafaviles please take a look at the submitted work: