Skip to content

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

@sidthekidder

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!

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