From a3a0fd52fb9806c0b4e840daeb001dd1fbf00368 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Thu, 17 Oct 2024 01:19:48 +0000 Subject: [PATCH] add makenow-meme --- fees/makenow-meme.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 fees/makenow-meme.ts diff --git a/fees/makenow-meme.ts b/fees/makenow-meme.ts new file mode 100644 index 0000000000..56b82d5f74 --- /dev/null +++ b/fees/makenow-meme.ts @@ -0,0 +1,29 @@ +import { FetchOptions, SimpleAdapter } from "../adapters/types" +import { CHAIN } from "../helpers/chains" +import { getSolanaReceived } from "../helpers/token" + +// https://solscan.io/account/8tA49tvPiTCkeVfuTms1F2nwVg6FWpQsQ8eNZ4g9vVQF + +// https://solscan.io/account/AEBoqzQU3fDYzhVmaRedcNeVcQQSMEqCAuQ2A7pYNEd7 + + +const fetchFees = async (options: FetchOptions) => { + const targets = [ + '8tA49tvPiTCkeVfuTms1F2nwVg6FWpQsQ8eNZ4g9vVQF', + 'AEBoqzQU3fDYzhVmaRedcNeVcQQSMEqCAuQ2A7pYNEd7' + ] + const dailyFees = await getSolanaReceived({ options, targets: targets }) + return { dailyFees, dailyRevenue: dailyFees, } +} + +const adapters: SimpleAdapter = { + version: 2, + adapter: { + [CHAIN.SOLANA]: { + fetch: fetchFees, + start: 1663113600, + } + } +} + +export default adapters