punk.protocol icon indicating copy to clipboard operation
punk.protocol copied to clipboard

Coding Stablecoin Yield Strategy for DeFi 401(k)

Open 0xJohnnySilverhand opened this issue 5 years ago • 18 comments

Coding Yield strategy for DeFi 401(k)

Prize Bounty

🏆 700 PUNK (~$7,000USD)


Challenge Description

Punk Protocol aims to liberate people from the outdated pension system and empower their financial freedom. Our first product is the world's first decentralized annuity a.k.a "Saver", which is generating periodic cash flows using optimal yield strategies.

Anyone can invest through the Saver to earn automated cash flows periodically by setting custom conditions - i) When do you want to start receiving, ii) How regularly do you want to receive, iii) How many times do you want to receive.

From this Hackathon, you’re invited to code the safest and most profitable Yield Strategy.

  • Yield Strategy is a smart contract model, which operates to maximize the profits of the user's investments.
  • The Saver Forge contract will invest the user's investment automatically according to the yield strategy you've submitted.
  • You must only code the yield strategy for stablecoins.

Submission Requirements

  • The Tokens used in this strategy must use ERC20 based stablecoins.
  • Your project must use an open-source license.
  • Your project must implement the "ModelInterface.sol" and "ModelStorage.sol" for Model.
  • The functionality of "Model.sol" must unconditionally conform to what is specified in the "ModelInterface.sol" file comments on Github.
  • The files to be coded should be located under /models.
  • There are 2 files that need to be inherited in total.
  • You need to code it by inheriting the file located here "/ModelStorage.sol" and "/interfaces/ModelStorage.sol"
  • You need to deploy a new mocked/demo version of YOUR-CODED-YIELD-STRATEGY on Kovan network so we can test your strategy.
  • The new strategy should work with the protocols currently running, and the specific mechanism should be specified.
  • The protocol you submit must include the development tools (e.g. Compound's dev tool)

Entrants can join our Discord and feel free to ask any questions. (👾︲hackathon)


Reference link

Punk Protocol Github Page (https://github.com/PunkFinance) Example: Punk Protocol-Compound Model (https://github.com/PunkFinance/punk.protocol/blob/master/contracts/models/CompoundModel.sol)


Judging Criteria

  • Stability of strategy
  • Profitability of the strategy
  • Possibility of implementation with smart contract

Winner Announcement Date

July 21th on Punk protocol's official Discord (👾︲hackathon)


Resources

Website(https://punk.finance/) Github(https://github.com/PunkFinance) Docs (https://docs.punk.finance/) Discord(https://discord.com/invite/punk)

0xJohnnySilverhand avatar Jun 14 '21 15:06 0xJohnnySilverhand

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


This issue now has a funding of 700.0 PUNK (7000.0 USD @ $10.0/PUNK) attached to it.

gitcoinbot avatar Jun 14 '21 16:06 gitcoinbot

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


Work has been started.

These users each claimed they can complete the work by 4 days, 17 hours from now. Please review their action plans below:

1) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 2) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 3) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 4) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 5) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 6) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 7) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 8) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 9) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 10) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 11) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 12) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 13) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 14) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 15) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 16) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 17) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 18) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 19) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 20) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 21) developer-piyush has started work.

https://github.com/Developer-piyush/Yield-Strategy/blob/main/README.md 22) realdiganta has started work.

yield farming of USDT from the AAVE v2 deposit pools

Learn more on the Gitcoin Issue Details page.

gitcoinbot avatar Jun 21 '21 06:06 gitcoinbot

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


Work for 700.0 PUNK (7000.0 USD @ $10.0/PUNK) has been submitted by:


gitcoinbot avatar Jun 21 '21 06:06 gitcoinbot

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


Work for 700.0 PUNK (7000.00 USD @ $10.0/PUNK) has been submitted by:

  1. @developer-piyush

@0xjohnnysilverhand please take a look at the submitted work:

  • PR by @developer-piyush

gitcoinbot avatar Jul 07 '21 23:07 gitcoinbot

Happy to tackle this issue.

/opire try

lewix-369 avatar Apr 21 '26 21:04 lewix-369

Happy to tackle this issue.

/opire try

lewix-369 avatar Apr 23 '26 07:04 lewix-369

I can take a look at this.

/opire try

lewix-369 avatar Apr 23 '26 19:04 lewix-369

This fits my stack perfectly.

/opire try

lewix-369 avatar Apr 25 '26 18:04 lewix-369

Looks interesting, I'll take it on.

/opire try

lewix-369 avatar Apr 25 '26 23:04 lewix-369