yearn / yearn-vaults-v2-subgraph

26 stars 41 forks source link

Reports from wBTC vault strategies are not showing up #89

Closed storming0x closed 3 years ago

storming0x commented 3 years ago

Reference to this issue https://github.com/dougstorm/yearn-hub/issues/53

The following query is not returning back results:

{
    strategies(where: {
      id_in: ["0x6598d4366d5a45de4bf2d2468d877e0b6436ae76", "0xb85413f6d07454828eAc7E62df7d847316475178"]
    }) {
        id
        reports(first: 10, orderBy: timestamp, orderDirection: desc)  {
          id
          transaction {
            hash
          }
          timestamp
          gain
          loss
          totalGain
          totalLoss
          totalDebt
          debtLimit
          debtAdded
          debtPaid
          results {
            startTimestamp
            endTimestamp
            duration
            apr
            durationPr
            currentReport {
                id
                gain
                loss
                totalDebt
                totalGain
                totalLoss
                timestamp
                transaction { hash blockNumber }
            }
            previousReport {
                id
                gain
                loss
                totalDebt
                totalGain
                totalLoss
                timestamp
                transaction { hash blockNumber }
            }
          }
        }
      }
  }