Skip to content

Commit

Permalink
update phantom
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Feb 12, 2025
1 parent bb6a95d commit d30414f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions fees/phantom.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { FetchOptions, SimpleAdapter } from "../adapters/types";
import { CHAIN } from "../helpers/chains";
import { queryDune } from "../helpers/dune";
import { getSolanaReceived } from "../helpers/token";

const fetch: any = async (options: FetchOptions) => {
const dailyFees = options.createBalances();
const value = (await queryDune("4313632", {
start: options.startTimestamp,
end: options.endTimestamp,
}));
value.forEach((v: any) => {
dailyFees.add(v.token_mint_address, v.total_balance_change);
});

return { dailyFees, dailyRevenue: dailyFees }

const dailyFees = await getSolanaReceived({ options, targets: [
'25mYnjJ2MXHZH6NvTTdA63JvjgRVcuiaj6MRiEQNs1Dq'
,'9yj3zvLS3fDMqi1F8zhkaWfq8TZpZWHe6cz1Sgt7djXf',
'8psNvWTrdNTiVRNzAgsou9kETXNJm2SXZyaKuJraVRtf',
'CnmA6Zb8hLrG33AT4RTzKdGv1vKwRBKQQr8iNckvv8Yg',
'2rQZb9xqQGwoCMDkpabbzDB9wyPTjSPj9WNhJodTaRHm',
'9gnLg6NtVxaASvxtADLFKZ9s8yHft1jXb1Vu6gVKvh1J',
'wtpXRqKLdGc7vpReogsRugv6EFCw4HBHcxm8pFcR84a',
'D1NJy3Qq3RKBG29EDRj28ozbGwnhmM5yBUp8PonSYUnm',
]})
return { dailyFees, dailyRevenue: dailyFees }
}

const adapter: SimpleAdapter = {
Expand Down

0 comments on commit d30414f

Please sign in to comment.