Skip to content

Commit

Permalink
fixed fooi adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
lil-il committed Sep 2, 2024
1 parent b192db9 commit c62faeb
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions aggregator-derivatives/vooi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const startTimestampBlast = 1719792000; // 01.07.2024
const startTimestampOpBNB = 1717200000; // 01.06.2024
const startTimestampBase = 1722470400; // 01.08.2024

const fetchArbitrum = async (options: FetchOptions): Promise<FetchResult> => {
const timestamp = options.toTimestamp
const fetchArbitrum = async (timestamp: number): Promise<FetchResult> => {
// const timestamp = options.toTimestamp
const fetchData = await fetchURL(`${URL}${endpoint}?ts=${timestamp}`) // returns data for the day before
let orderlyItem = fetchData.find(((item) => item.protocol == "orderly"))
if (!orderlyItem) {
Expand Down Expand Up @@ -38,26 +38,23 @@ const fetchArbitrum = async (options: FetchOptions): Promise<FetchResult> => {
};


const fetchOpBNB = async (options: any): Promise<FetchResult> => {
const timestamp = options.toTimestamp
const fetchOpBNB = async (timestamp: number): Promise<FetchResult> => {
return {
dailyVolume: 0,
totalVolume: 0,
timestamp
};
};

const fetchBlast = async (options: any): Promise<FetchResult> => {
const timestamp = options.toTimestamp
const fetchBlast = async (timestamp: number): Promise<FetchResult> => {
return {
dailyVolume: 0,
totalVolume: 0,
timestamp
};
};

const fetchBase = async (options: any): Promise<FetchResult> => {
const timestamp = options.toTimestamp
const fetchBase = async (timestamp: number): Promise<FetchResult> => {
return {
dailyVolume: 0,
totalVolume: 0,
Expand Down

0 comments on commit c62faeb

Please sign in to comment.