From 6235b7613f77b4ae52d075bed2b9727e30c50468 Mon Sep 17 00:00:00 2001 From: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> Date: Tue, 5 Nov 2024 06:57:54 +0100 Subject: [PATCH] track g8keep.xyz --- fees/g8keep.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 fees/g8keep.ts diff --git a/fees/g8keep.ts b/fees/g8keep.ts new file mode 100644 index 0000000000..5222674d44 --- /dev/null +++ b/fees/g8keep.ts @@ -0,0 +1,24 @@ +import ADDRESSES from '../helpers/coreAssets.json' +import { FetchOptions, SimpleAdapter } from "../adapters/types" +import { CHAIN } from "../helpers/chains" +import { addTokensReceived } from '../helpers/token'; + +const fetchFees = async (options: FetchOptions) => { + const dailyFees = await addTokensReceived({ options, tokens: [ADDRESSES.base.WETH], fromAddressFilter: '0x3C0B43867Cd04fEdfD6a95497e5ea7e3aFF8cCaE' , target: '0x28253c1A76256bf1D9095587826AfCC5705aF98a' }) + + return { + dailyFees: dailyFees, + dailyRevenue: dailyFees, + } +} + +const adapter: SimpleAdapter = { + version: 2, + adapter: { + [CHAIN.BASE]: { + fetch: fetchFees, + start: 1730674800, + } + } +} +export default adapter