Skip to content

Commit

Permalink
feat: add op_bnb chain
Browse files Browse the repository at this point in the history
  • Loading branch information
fanjiachangRyan committed Oct 8, 2024
1 parent b198cf5 commit 5d6482e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fees/myx-finance/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SimpleAdapter, FetchResultFees, FetchOptions } from "../../adapters/types";
import { SimpleAdapter, FetchOptions } from "../../adapters/types";
import fetchURL from "../../utils/fetchURL";
import { CHAIN } from "../../helpers/chains";

Expand Down Expand Up @@ -49,6 +49,7 @@ const fetchFees = async (_t: any, _b: any, optios: FetchOptions) => {
const startTimestamps: { [chain: string]: number } = {
[CHAIN.ARBITRUM]: 1706659200,
[CHAIN.LINEA]: 1708473600,
[CHAIN.OP_BNB]: 1727443900
}

const adapter: SimpleAdapter = {
Expand All @@ -68,6 +69,13 @@ const adapter: SimpleAdapter = {
methodology
}
},
[CHAIN.OP_BNB]: {
fetch: fetchFees,
start: startTimestamps[CHAIN.OP_BNB],
meta: {
methodology
}
},
}
}

Expand Down

0 comments on commit 5d6482e

Please sign in to comment.