CryptoStats Forum Archive

Ribbon Revenue

Created Jan 24, 2022·1,282 views·1 reply·0 likes
danger
Jan 24, 2022, 11:59 AM

Subgraph wont take timestamp param sadly.

EDIT: not spam

David
Jan 24, 2022, 12:55 PM

@danger you can query subgraphs at different times using block numbers

Better explanation in this tutorial:

danger
Jan 24, 2022, 02:06 PM

Thank you for the feedback David I didn’t realise, sorry. Here are 2 updated adapters:

QmdzDEqSSfC2vu4qhw15myHZ7Haho977d4RTrczCB9kDXX
QmaWCggB3gDuLw8P6fjb1AYiEWDVkU4UP7QTSstGF8d8Zu

(unable to post the links as a comment)

The metadata may be messy. Please advise if anything should be changed.

danger
Jan 24, 2022, 03:17 PM

Further to comments on Discord:
QmXPdUCrsxauCiAbFxk2XgrvEdDpt1QiLzDiZA5nqRAoP7
Qmcqnseum6CeTZdbzrqJCcFK7eVTfhTh2U4mL3HasoGQzf

David
Jan 27, 2022, 09:38 PM

Verified, thanks @danger!

For future reference, here’s the comment from Ken of Ribbon re: revenue only collected on fridays:

image

David
Feb 17, 2022, 08:08 PM

Hey @danger, one issue I’m noticing is that CryptoFees.info doesn’t cache values if they’re “0”, so this query keeps getting re-run for all days except friday.

I was thinking maybe we could update the adapter to hardcode a value of 0 for all dates except Friday. Any thoughts?

Edit: it also should have a tokenLaunch field in the metadata, which I believe is October 6