Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Incorrect value for vault debt #7

Description

@jvalteren

Hi,

I'd like to use your subgraph to get specific Maker Vault collateral and debt values. I'm using cdpId 19417 for testing, of which I know the current debt (Tue 19 Jan 16:35 CET) is 9202.90 DAI (see https://defiexplore.com/cdp/19417).

However, querying the subgraph returns a debt of 8963.24.

Might this be related to pull request #6? Thanks!

Exact query:

{
  vaults(where:{ cdpId: 19417 }) {
    collateralType {
      id
    }
    collateral
    debt
  }
}

Response:

{
  "data": {
    "vaults": [
      {
        "collateral": "25",
        "collateralType": {
          "id": "ETH-A"
        },
        "debt": "8963.246306891334844794"
      }
    ]
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions