Git Product home page Git Product logo

defi-econ's People

Contributors

happybenchen avatar hileoo avatar lyc0603 avatar xujiahuayz avatar ytian349 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

lyc0603

defi-econ's Issues

Clean up the repo (fetching, processing, evaluating).

  • Config
  • Data fetching cleaning up
  1. Uniswap V2
  2. Uniswap V3
  3. Lending (compound only, no aave for now)
  4. Coinmarketcap / coingecko / cryptocompare

by 24 Dec 2022

  • Data processing
  1. Code refactoring
  • refactor fetching and processing code such that data can be added incrementally (not always from the start), and plots can be updated accordingly
  • dictionary for stable coin / governance token (add coin type, see #3), deprecate token_library.csv
  1. Variable construction
  • Eigenvector centrality
  • Betweenness centrality (see #12)
  • Borrow rate: instead of utization ratio (borrow of toke XYZ / supply of token XYZ), we use relative borrow (borrow of token XYZ / total borrow in the market)
  • Other variables (add coin type, see #3)
  1. Summary statistics
  2. Visualization
  1. Regression
  • Structural break / regime switch - Luna/Terra cash, c.a. May 9 / 10 2022. Chow test / F-test
  • Coefficients comparison
  • Re-do tables (old version /Dropbox/dominant_defi/data/4_tables/Defi_data_22-10-04)
  1. Pareto distribution test -- for centrality measurements

Update README.md as you go -- e.g. which file to run to fetch more data, which file to run to re-plot etc.

Betweenness centrality analyses

  • Revise betweenness centrality pseudocode on overleaf
  • Design betweenness centrality calculation python function
  • Plot time-series (same style as eigenvector centrality)

I.VW Research Seminar

anology between defi & tradfi not obvious to those lack of defi knowledge

  • highlight the analogy: e.g. USD-pegged stablecoins have been used as store of value / to pay salary in crypto, ETH similar to working capital currency as it is used to pay costs on-chain

panel data not sufficiently taken advantage of

  • consider using random effect (instead of fixed effect, since we have token-specifc variables); consider hausman taylor estimator

defi data not sufficiently taken advantage of

  • develop some testable hypotheses around different defi token types (governance token, utility token, payment token etc.)

consider other centrality measurement

Further improvement

  1. Could probably also write some mini function for HHI, subscript, superscript naming in constants.py.

Meeting Notes - 26 Jun

  • Eigenvector centrality for sorting to forecast return. Lending APY to calculate underlying returns. Price to calculate underlying dollar-denominated returns.
  • Lending APY changed every day. Annual return to daily (1 + APY)^(1 / ) 100 dollar -> Aave 2Aave -> dollar Compound calculation.
  • Single sort: Eigen + APY + return.
  • Momentum and Dominance.

First draft to-dos

  • Eigenvector centrality.
  • #5
  • Utilization Ratio โ€”โ€”> Relative borrow = Token borrow / Total market borrow; Relative supply = Token lending / Total market lending.
  • harmonize variables in text, equations, figures, tables.
  • Update data.
  • re-generate results.
  • Update the reference.
  • fact-checking.

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.