messari / subgraphs

Standardized subgraphs for blockchain data
MIT License
501 stars 236 forks source link

feat(#major); EtherFi; Add Subgraph #2554

Closed harsh9200 closed 3 months ago

harsh9200 commented 3 months ago

Summary

Adds subgraph for EtherFi on Ethereum using generic schema.

Test Deployment: https://subgraphs.messari.io/subgraph?endpoint=QmURUkHMqEDGLi36JTssmWLgdYeDipEUvD1G1FgLTdjBrz&tab=protocol

Preliminary QA

TVL

image image

Supply Side Revenue

image

Protocol Side Revenue

image

Daily Active Users

image

harsh9200 commented 3 months ago

@steegecs The revenues are calculated using the WithdrawFunds function call on the EtherFiNode contract. This function can be either used to do a partial withdrawal (claim only the staking rewards) or a full withdrawal (complete withdrawal of principal amount plus the accumulated rewards). This huge spike in revenue is because we are also calculating the principal amount in full withdrawal as revenue. I have pushed a fix to remove the principal amount from the revenue calculation.

New Deployment: https://subgraphs.messari.io/subgraph?endpoint=QmURUkHMqEDGLi36JTssmWLgdYeDipEUvD1G1FgLTdjBrz&tab=protocol