Skip to content

Commit

Permalink
beet on sonic
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Jan 9, 2025
1 parent 6184ede commit 0fe274b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions dexs/beethoven-x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import request, { gql } from "graphql-request";
const endpoints: ChainEndpoints = {
[CHAIN.FANTOM]: sdk.graph.modifyEndpoint('4XKeW12D2RAhqefPYT3MLoT64p1JnT5TBLnYaNeSLA8k'),
[CHAIN.OPTIMISM]: sdk.graph.modifyEndpoint('F5jeL2nMXZt5LU6kSway7Vi2PTUcqDbw1gMQEbrmiVdJ'),
[CHAIN.SONIC]: sdk.graph.modifyEndpoint("wwazpiPPt5oJMiTNnQ2VjVxKnKakGDuE2FfEZPD4TKj"),
};

interface IPool {
Expand Down
10 changes: 6 additions & 4 deletions fees/beethoven-x.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ import { getFeesExport } from "../helpers/balancer";

type TAddress = {
[s: string | Chain]: string;
}
};
const vaultAddresses: TAddress = {
[CHAIN.OPTIMISM]: "0xba12222222228d8ba445958a75a0704d566bf2c8",
[CHAIN.FANTOM]: "0x20dd72ed959b6147912c2e529f0a0c651c33c9ce",
}
[CHAIN.SONIC]: "0xba12222222228d8ba445958a75a0704d566bf2c8",
};

const adapters: SimpleAdapter = {
adapter: {
[CHAIN.OPTIMISM]: { fetch: getFeesExport(vaultAddresses[CHAIN.OPTIMISM]), start: '2023-01-01' },
[CHAIN.FANTOM]: { fetch: getFeesExport(vaultAddresses[CHAIN.FANTOM]), start: '2023-01-01' },
[CHAIN.SONIC]: {fetch: getFeesExport(vaultAddresses[CHAIN.SONIC]), start: "2024-12-14" },
},
version: 2,
}
export default adapters
};
export default adapters;

0 comments on commit 0fe274b

Please sign in to comment.