diff --git a/fees/vader-ai.ts b/fees/vader-ai.ts new file mode 100644 index 0000000000..d4c2021622 --- /dev/null +++ b/fees/vader-ai.ts @@ -0,0 +1,36 @@ +import { FetchOptions } from "../adapters/types"; +import { CHAIN } from "../helpers/chains"; +import { addTokensReceived } from "../helpers/token"; + +const contract: any = { + [CHAIN.BASE]: [ + '0x5cb7c9605888f5de8c1132acd9930af0cdb29a5e', + '0x8bE2c661b35161A138A35C84F77895c4cc23900D', + ] +} + +const fetchFees = async (options: FetchOptions) => { + const dailyFees = options.createBalances(); + addTokensReceived({ + options, + target: contract[options.chain], + token: '0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b', + balances: dailyFees, + }) + return { + dailyFees, + dailyRevenue: dailyFees, + }; +} + +const adapter = { + version: 2, + adapter: { + [CHAIN.BASE]: { + fetch: fetchFees, + start: '2024-09-09', + }, + }, +} + +export default adapter;