GithubHelp home page GithubHelp logo

Compound Interest rate issue about subgraphs HOT 6 CLOSED

messari avatar messari commented on May 26, 2024
Compound Interest rate issue

from subgraphs.

Comments (6)

this-username-is-taken avatar this-username-is-taken commented on May 26, 2024 1

I take that back. now i see, it looks like the snapshots are actually storing a pointer to the InterestRate so they all have the current rates.. Will look at this more tomo

This is still an outstanding issue. It'll be great if you could look into it!

from subgraphs.

melotik avatar melotik commented on May 26, 2024

is this fixed? Seems like it is graphing supply and borrow rates on the same line... Doesn't seem to be a problem in the latest dashboard version

from subgraphs.

melotik avatar melotik commented on May 26, 2024

I take that back. now i see, it looks like the snapshots are actually storing a pointer to the InterestRate so they all have the current rates.. Will look at this more tomo

from subgraphs.

melotik avatar melotik commented on May 26, 2024

Also seems to be an issue with the compound-forks

from subgraphs.

this-username-is-taken avatar this-username-is-taken commented on May 26, 2024

is this fixed? Seems like it is graphing supply and borrow rates on the same line... Doesn't seem to be a problem in the latest dashboard version

This has been fixed

from subgraphs.

melotik avatar melotik commented on May 26, 2024

I see two options:

1- A new InterestRate entity is created for each MarketDailySnapshot / MarketHourlySnapshot

2- We fix on the data query side using https://thegraph.com/docs/en/developer/graphql-api/#time-travel-queries and a query similar to something like this:

image

from subgraphs.

Related Issues (20)

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.