Skip to content

Incorrect value for vault debt #7

Open
@jvalteren

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"
      }
    ]
  }
}

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