CryptoStats Forum Archive

Add EOS Fees

Created Jun 27, 2022·966 views·6 replies·1 like
Denis@DenisCarriere
Jun 27, 2022, 06:26 PM

Added EOS fees (native protocol earnings)

Stats collected from EOS Authority:
https://eosauthority.com/rex/statistics?network=eos

oneDayTotalFees: 404.6364206781
networkFeesByDayUSD: 404.6364206781

David
Jun 28, 2022, 10:19 AM

Hey @DenisCarriere, thanks for putting this together!

Unfortunately, I don’t think this approach will work, we need to be able to query fees on a given calendar day, not just the last 24 hours.

Denis@DenisCarriere
Jul 20, 2022, 03:22 PM

Updated the EOS Fees adapter v0.1.2 to work with historical date query

QmaPqtXzGaGN86sTEeGNfcZR8anhYqvaxj79N1yvNej2Pz

Should be working with any given day in the past for both “fees” & updated historical price with CoinGecko.

David
Jul 20, 2022, 03:28 PM

Hey @DenisCarriere, thanks for this update!

One thing it’s missing is a protocolLaunch attribute in the metadata, data should be available from that date and any day forward.

If you add protocolLaunch, it should be good to approve!

1 like
Denis@DenisCarriere
Jul 20, 2022, 03:30 PM

OK sounds good!

Will add that attribute to the adapter :ok_hand:

Denis@DenisCarriere
Jul 20, 2022, 05:27 PM

:white_check_mark: added protocolLaunch to the following v0.1.3 adapter

QmTnLFXdjKtZ2Zb5xq5J6qasG8oVyYUVSjQbY4qMPrdRYF

David
Jul 21, 2022, 12:12 AM

Queries in 2018 are failing, I see the error message [date] REX fees only start at 2019-05-03

Can you change the protocolLaunch date to 2019-05-03?

Denis@DenisCarriere
Jul 21, 2022, 01:57 PM

Ah yes, dates prior to that timeframe causes some issue.

The fees accumulated on EOS in the first year were simply accumulated in various account, the latest fee generation method today is using REX (Resource Exchange). Let me add support on the API to support legacy fees.

Denis@DenisCarriere
Jul 21, 2022, 04:14 PM

@David should be fixed now, any queries at protocolLaunch date are functional

Legacy & latest protocol fees are now supported

David
Aug 29, 2022, 11:04 AM

Newest update looks good, just approved it!

Thanks for your contribution @DenisCarriere!