oceanprotocol/aquarius

sales count bug on asset details

EnzoVezzaro opened this issue · 5 comments

Describe the bug
This newly created asset has a sales count of -1

To Reproduce
Steps to reproduce the behavior:

  1. Go to Asset
  2. See sales count

Expected behavior
Not negative numbers

Screenshots
Screenshot 2022-07-08 at 07 37 17

Additional context
Subgraph is returning -1

Screenshot 2022-07-08 at 07 23 56

So this is not a market bug. And also stats is from Aquarius not Subgraph.

The subgraph seems to be ok query initial block , query current

The orders are set to -1 as an error indicator, meaning that there was no subgraph defined for that network, or it could not be reached. It is possible that we have outdated resources, I'll investigate

When do we update the orders? Is it a timer or event based?

event-based, when the OrderStarted event is detected

we can close this for now. It's not really a bug, we need to think about this a bit more, different topic