Skip to content

Commit

Permalink
Merge pull request #2292 from DefiLlama/vader-ai-fees
Browse files Browse the repository at this point in the history
add vader-ai
  • Loading branch information
dtmkeng authored Jan 10, 2025
2 parents 8ff559b + 9287ec8 commit 299edee
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions fees/vader-ai.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 299edee

Please sign in to comment.