Skip to content

Commit

Permalink
fix error adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Apr 11, 2024
1 parent 9f49359 commit 778a9f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions fees/blazebot.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Adapter, ChainBlocks, FetchOptions, FetchResultFees } from "../adapters/types";
import { Adapter, ChainBlocks, DISABLED_ADAPTER_KEY, FetchOptions, FetchResultFees } from "../adapters/types";
import { CHAIN } from "../helpers/chains";
import { Chain } from "@defillama/sdk/build/general";
import { request, } from "graphql-request";
import disabledAdapter from "../helpers/disabledAdapter";

type TEndpoint = {
[s: Chain | string]: string;
Expand Down Expand Up @@ -37,8 +38,9 @@ const graphs = (chain: Chain) => {

const adapter: Adapter = {
adapter: {
[DISABLED_ADAPTER_KEY]: disabledAdapter,
[CHAIN.BASE]: {
fetch: graphs(CHAIN.BASE),
fetch: async (timestamp: number) => {return{timestamp}},
start: 1694131200,
},
}
Expand Down
2 changes: 1 addition & 1 deletion fees/kperp-exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const adapter: Adapter = {
adapter: {
[DISABLED_ADAPTER_KEY]: disabledAdapter,
[CHAIN.KAVA]: {
fetch: graphs(endpoints)(CHAIN.KAVA),
fetch: async (timestamp: number) => {return{timestamp}},
start: 2578000,
meta: {
methodology: 'All mint, burn, marginAndLiquidation and swap fees are collected and the daily fee amount is determined. Daily revenue is calculated as 30% of the total fee.'
Expand Down
2 changes: 1 addition & 1 deletion fees/merlin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const adapter: Adapter = {
adapter: {
[DISABLED_ADAPTER_KEY]: disabledAdapter,
[CHAIN.ERA]: {
fetch: fetch(CHAIN.ERA),
fetch: async (timestamp: number) => {return{timestamp}},
start: 1680274800,
},
},
Expand Down

0 comments on commit 778a9f3

Please sign in to comment.