Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 939 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 939 Bytes

Fees and Revenue

Guide

There is a guide for how to add a fee adapter listed here.

Cloning

Clone this repo with git clone --recursive. If you have already cloned it use git submodule update --init

Backend Data Table

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)

Protocol ids

Taken from protocols/data matching category or protocols/chains

Adding a new adapter

To add a new adapter

  • write adapter to src/adaptors, helpful to reference existing ones
  • add adapter path to src/adaptors/index, and utils/adaptors
  • test using npm run test-fees uniswap with protocol id