There is a guide for how to add a fee adapter listed here.
Clone this repo with git clone --recursive
. If you have already cloned it use git submodule update --init
PK (S) | SK (N) | [chain] |
---|---|---|
df#protocol#[id] | [unixTimestamp] | {[version]:[volume]} |
dr#protocol#[id] | [unixTimestamp] | {[version]:[volume]} |
df = daily fees dr = daily revenue
PK types (#protocol, #chain)
Taken from protocols/data
matching category or protocols/chains
To add a new adapter
- write adapter to
src/adaptors
, helpful to reference existing ones - add adapter path to
src/adaptors/index
, andutils/adaptors
- test using
npm run test-fees uniswap
with protocol id