yearn-hegic

yearn vault using hegic

Live Demo Source Code

Prizes

Best use of Yearn.finance

Description

We created a yearn vault + strategy using the new Hegic protocol. More info about hegic: - https://medium.com/hegic/hegic-v888-is-live-1c790de1b38 - https://www.hegic.co/ The strategy takes care of gathering 888k hegic tokens which are used to buy a Hegic lot. All fees generated by Hegic are distributed across their lot owners. The strategy takes care of claiming eth from Hegic and uses Uniswap to exchange profits for more Hegic.

How It's Made

We had to refactor the yearn code to use interfaces so the strategy dependencies code can be mocked. With mocks, we could develop the strategy using TDD and we had a very stable code before testing in mainnet-fork. We added several tests and we have enough coverage to do whatever refactor yearn core devs think it's necessary to deploy to prod.

Team

Carlos Sessa Matthew West
← click here to see all projects