Giter Site home page Giter Site logo

steve0xp / passive-gearbox-strategy-v2yvault Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xvaljohn/foundry_strategy_mix

0.0 0.0 0.0 161 KB

Passive gearbox strategy for yearn v2 vaults

License: GNU Affero General Public License v3.0

Shell 0.63% Makefile 3.20% Solidity 96.16%

passive-gearbox-strategy-v2yvault's Introduction

Welcome!

๐Ÿ™‹๐Ÿปโ€โ™‚๏ธ About Me :

  • ๐Ÿ”ญ Iโ€™m a smart contract dev / dev rel currently with over three years of experience in DeFi full-time. I am currently working full-time on a number of projects (using different github accounts :)). That said, I am always open to meeting more people in the industry so please feel free to reach out to chat! Please inquire for my formal resume :), otherwise here's some details about some of my work / me!
  • ๐ŸŒฑ As well, I contributed / contribute to open-source DeFi projects including:
  • ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Recent public work: Serve as a Balancer Grants Committee member, co-hosted a hackerhouse at EthDenver 2023 with Jessy's Hackerhouse && BUIDL GUIDL, core contributor to Photon, a decentralized stablecoin protocol (see pinned repos && CV Details below for highlights)
  • โšก Fun facts: I've hitch hiked in Iceland, and was CTO of a hockey equipment startup in the NHL (but can't stop on skates ๐Ÿคท๐Ÿปโ€โ™‚๏ธ)

๐Ÿ“œ CV - (newest to oldest, if no README see description)

  1. April 2023 - Present: Defi Smart Contracts Contributor && Dev Rel w/ numerous projects

  2. January 2023 - April 2023: Yearn Mellow-Gearbox_wETH Strategy

  3. January 2023 - Present: Standardized Oracle System - in private repo currently.

  1. March 2022 - January 2023: Ekonomia Technologies core contributions to Photon Finance Protocol - Smart Contract Development && Partnerships Integration (see architecture schematic & whitepaper here for reference. Highlighted PRs below showcase my past experience in conceptual design, implementation, reviewing, && testing for various contracts:

  2. March 2022 - Pak Subgraph : Implemented my first subgraph whilst thinking about perspective & use cases of end-user.

  3. January 2022 - Present BUIDL GUIDL Contributor

*TWAP implementation found not suitable for curve, so implemented other corrections. Spun out to now deeper understanding && research for a generic oracle setup for all protocols to use.

passive-gearbox-strategy-v2yvault's People

Contributors

0xpatrooney avatar anticlimactic avatar charlesndalton avatar githinho avatar mootz12 avatar schlagonia avatar storming0x avatar

passive-gearbox-strategy-v2yvault's Issues

Simulation of partial liquidity upon withdrawal

Context from chat w/ 0xValJohn:

Repo [link](https://github.com/0xValJohn/foundry_strategy_mix/blob/76e1feb53121e78c4a15cb00394aba42be7abd9b/src/Strategy.sol#L178)
Extra Notes:
A simulation of partial liquidity upon withdrawal. I need to simulate (prank via foundry) burn dieselToken: here

Investigating setting up this test and why it is needed:

  • Look at the testStrategyLimitedLiquidityNoLoss() unit test from 0xValJohn.
    • Outline scope of the unit test (partial withdraw because of certain edge case - liquidity not available for some reason in Gearbox Pool? Or is it some other scenario?)
  • Establish unit test needs (pass/fail settings, helper functions, etc.)
  • Establish happy path and unhappy path tests.
  • Finalize tests

Conversion from native asset to dieselToken is lossy

Context from chat w/ 0xValJohn:

Repo [link](https://github.com/0xValJohn/foundry_strategy_mix/blob/76e1feb53121e78c4a15cb00394aba42be7abd9b/src/Strategy.sol#L178)
Extra Notes:
It looks like it's related to how expectedLiquidity is calculated here and here (via timestamp)

Investigating the 'lossy-ness':

  • Determine what values are being compared (on the Yearn accounting side, and the return value side of things). I assume it is estimatedTotalAssets()

    • Look through the code and make sense of the function calls and implementation
  • Assess possible areas of lost accuracy (rounding errors, etc.)

    • console.log all values throughout calculation of return value && estimatedAssets value
  • Provide a run-down of what was found via investigation && resulting action items

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.