GetCurrentDelegatorBalancesCount top-level constant

String const GetCurrentDelegatorBalancesCount

Implementation

const GetCurrentDelegatorBalancesCount = r'''
    query getCurrentDelegatorBalancesCount($poolAddress: String) {
  current_delegator_balances_aggregate(
    where: {pool_type: {_eq: "active_shares"}, pool_address: {_eq: $poolAddress}, amount: {_gt: "0"}}
    distinct_on: delegator_address
  ) {
    aggregate {
      count
    }
  }
}
    ''';