Create a new Metric
Last updated
Last updated
For identification, you can set a Name and a Description for the metric. As an example we will use QuickSwap's public amount of swaps.
A metric consist of many Event's configurations combined, so you if your TVL consists of the sum of Event's data from multiple contracts/chains you can have it.
Each event requires define the chain, the contract address, the event we will track, the aggregation formula (sum or just count) and optionally the topic or data field to take into account.
A few important things to highlight:
As you can see, we ask protocols to verify the ownership of the contracts, otherwise anyone could use top protocol's metrics for them. More details here.
So, after hitting create metric, our custom indexers will start tracking your metrics and you will be able to start using it.
We optionally allow you to insert your abi to help you autocomplete the other fields, but as soon as you insert the chain and contract address we will find the abi using public scanners and autocomplete the available events and topics/data-fields for you. So defining an event should take 4-5 clicks .