Compound V2 depositor
Curated by
Galxe
ID Type
EVM ADDRESS
Cred Type
SUBGRAPH
Last Update Time
01/18/2024, 13:09:06
Query
query trader($address: ID!){
  accounts(where: {id: $address}) {
    id
    hasBorrowed
  }
}
Expression
function(data) {
  if (data == null || data.accounts == null) {
    return 0
  } else if (Array.isArray(data.accounts) && data.accounts.length == 0) {
    return 0
  } 
  return 1
}