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.

How do we get liquidation event/time information? #8

Description

@sidthekidder

Hello,
I'm using this query to retrieve collateral/debt values -

{
  user(id:"0x0005ccfc729f11a55d4b4a30659a17c613d227f1"){
    id,
    vaults{
      id,
      collateralType {
        id,        
      },
      collateral,
      debt,
      logs(orderBy:timestamp){
        __typename,
        ...on VaultDebtChangeLog {
          id, 
          debtDiff
        }
        ...on VaultTransferChangeLog {
          id,
          timestamp,
        }
        ...on VaultCollateralChangeLog {
          id,
          collateralDiff
        }
      }
    }
  }
}

After reading the maker docs, my understanding is vaultTransferLog represents liquidation events, when value is transferred. Is that correct? Or do we have to use collateralAuction to retrieve liquidation values per wallet. Would appreciate any tips or examples, thanks!

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