borrito
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Data Visualizations for Yearn - 2nd Month ## Scope ![](https://i.imgur.com/gszbrjO.png) ![](https://i.imgur.com/OzQ9Old.png) The current state of the app can be seen at https://ydata.vercel.app This is a follow-up request from [the previous request for the data visualization project](https://github.com/yearn/budget/issues/89), the details of which could be seen from the comment section of the issue. Before we ask for the extension, we would like to first share the current progress of the project. **yData** ![](https://i.imgur.com/Eveg1tq.png) [yData](https://github.com/yearn/ydata) is the new branding of the previous yearn-data-analytics repo. We aim to use this web app and the repository to share the results from our research, and potentially also use this space to serve products that are directly related to the research results. As mentioned above, the app is currently deployed using vercel: https://ydata.vercel.app yData currently holds two visualizations: * [Yearn V2 Vaults](https://ydata.vercel.app/visualizations/yearn-v2-vaults) * [Efficient Frontier](https://ydata.vercel.app/visualizations/efficient-frontier) The Yearn V2 Vaults is an interactive dashboard that illustrates the various statistics of our vault assets. Efficient Frontier is a simple datapane report that lets the users compare the performance of Yearn's assets against the whole DeFi space. **Social Media** Although this was not within our action items, we found out that our [YFI Interns Twitter account](https://twitter.com/YFI_interns) was dormant since the last RT on the 9th of June. Thus we decided to reactivate this account to start delivering the data-driven narratives. ![](https://i.imgur.com/7NuAGUu.png) We tried out some [simple tweets about our vaults](https://twitter.com/YFI_interns/status/1574752793738485763?s=20&t=8-XYhoTBstBIYPT1XRWk8g) to measure the level of traction the account was able to reach. We will continue to post these simple weekly data reports and also continue the RTs for the main account to gradually regain the audience back to the Interns account. We also created a Discord channel dedicated to the data visualization projects (thanks to Dark) named \#data-science in Yearn Talk. We will be cross-posting the tweets and sharing the updates for the yData app in this channel. **Shortfalls** The items that we promised for the first month were the following: 1. Create a frontend server to embed the visualizations using our web template 2. Create a visualization of the efficient frontier of DeFi assets Thus it may seem like we did deliver the above two items on the surface. However there are a few shortfalls for both items that we did not manage to fulfill. For 1, we did set up the template but still need to work on the overall branding and creating a better UX. Marco Worms recently joined the team to help us out on this issue. For 2, the current efficient frontier is built upon only the stablecoins data instead of the whole set of DeFi assets. Also, the current visualization is missing the backtest results of the exemplary portfolios. The main blocking factor for this was that we had to fetch the price of an arbitrary token on a specific chain, at a given block. We are planning on combining the new coin API from [DefiLlama](https://defillama.com/docs/api) and the [ypricemagic](https://github.com/BobTheBuidler/ypricemagic) to tackle this issue. For both 1 and 2, we came across several mismatches in the data between the different data sources of Yearn during the project (e.g. https://github.com/yearn/yearn-exporter/issues/393). Thus we had to spend some time to check the integrity of the data and rebuild the pipelines to fetch them from the correct source. We believe that this could be easily fixed after the upcoming update on [yDaemon](https://github.com/yearn/ydaemon). ## Plans We would like to follow the original 3-month plan that we shared in [the first request](https://github.com/yearn/budget/issues/89), but with a couple of modifications. **Second Month (Requested Month)** * ~~Migrate the visualizations created by jameskbh to the frontend~~ * Create a visualization of our customers * Sample plot at https://chart-studio.plotly.com/~borrito/3/#/ * Aims to help answer the following questions: * What other protocols do our clients use? * Were the recent withdrawals transitory? * How does the distribution of TVL for a single vault look like? * (NEW) Update the visualizations * Update the structure of Yearn V2 Vaults * Sample draft at https://docs.google.com/document/d/11-WwulyYS1N91Z4wTAeCk2UPlS7oNixdUf_9GQInC1w/edit?usp=sharing * Update the data source and the backtest results for the efficient frontier * Provide documentations for the visualizations * Sample draft at https://docs.google.com/document/d/1w0jYpGDqViCOwn4MkiySBPGGEJX6h16rBXUDRKOMQUA/edit * (NEW) Create a visualization of the tail-dependency of tokens * Sharing the recent research results of cs data, working within the strategist team * Create a graph visualization from the correlation of the token price volatilities * Aims to help answer the following questions: * Which tokens does a given token share its tail-risk? * Which strategies should belong to the same risk group? * How should we diversify our TVL allocations? The migration of the visualizations created by jameskbh has already begun in the first month. The Yearn V2 Vault visualization directly contains the contents from the [yVaults v2 Historical Overview](https://medium.com/@jameskbh/yvaults-v2-historical-overview-23a9a7db28a5), and also implicitly contains the narratives from [Yearn Vaults’ Stablecoins report: DAI, USDC, and USDT](https://medium.com/@jameskbh/yearn-vaults-stablecoins-report-dai-usdc-and-usdt-620dfc11c72f). Thus we now remove this item from the Second Month and instead replace it by the update item. This data visualization project has been able to facilitate the exchange of ideas within the YFI Data Analysis group, and the tail-dependency graph is a short-term project that came to life from such ideations. cs data has been working on building forecast models for the price volatilities of different tokens. Although it may take some time until he can complete the model, it seemed beneficial to first take the contemporaneous part of the analysis and visualize it to share the results with the other teams of Yearn. We are planning to visualize this structure as a graph to give us a bird's-eye view on the risk landscape of different tokens. ## Deadline 2022-11-30 ## People List of team members and the responsibilities: * borrito * implement the customer visualization * implement the tail-dependency of tokens * will be addressing all issues full-time * huggingbot * maintain the frontend server * implement and maintain data pipelines (yearn-exporter, ydaemon) * kofee * implement and maintain data pipelines (subgraph, yearn-exporter, ydaemon) * jameskbh * keep creating visualizations in flourish studio * research other data visualization platforms * marco worms (not receiving remuneration from this grant) * lead the branding of yData and its products * implement and enhance the frontend UI/UX * cs data (not receiving remuneration from this grant) * give technical advice on the data scientific methods * implement the tail-dependency of tokens * farrah (not receiving remuneration from this grant) * lead product developments from the visualizations * build visualization to support R&D efforts * in charge of internal assessment of the performance and effectiveness of the project

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully