Skip to content

Commit

Permalink
Merge pull request #1849 from vooi-app/master
Browse files Browse the repository at this point in the history
fixed fooi adapter
  • Loading branch information
dtmkeng authored Sep 2, 2024
2 parents 583134e + c62faeb commit bc44dbd
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 bc44dbd

Please sign in to comment.