Skip to content

Commit

Permalink
fix run current
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Mar 31, 2024
1 parent 94afb94 commit 4d96fcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dexs/apollox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const fetchV1Volume = async () => {
const adapter: SimpleAdapter = {
adapter: {
[CHAIN.BSC]: {
runAtCurrTime: true,
fetch: async (timestamp) => {
const [v1, v2] = await Promise.all([
fetchV2Volume(CHAIN.BSC),
Expand All @@ -72,6 +73,7 @@ const adapter: SimpleAdapter = {
start: 1682035200,
},
[CHAIN.ARBITRUM]: {
runAtCurrTime: true,
fetch: async (timestamp) => {
const dailyVolume = await fetchV2Volume(CHAIN.ARBITRUM);
return {
Expand All @@ -82,6 +84,7 @@ const adapter: SimpleAdapter = {
start: 1682035200,
},
[CHAIN.OP_BNB]: {
runAtCurrTime: true,
fetch: async (timestamp) => {
const dailyVolume = await fetchV2Volume('opbnb');
return {
Expand All @@ -92,6 +95,7 @@ const adapter: SimpleAdapter = {
start: 1682035200,
},
[CHAIN.BASE]: {
runAtCurrTime: true,
fetch: async (timestamp) => {
const dailyVolume = await fetchV2Volume(CHAIN.BASE);
return {
Expand Down
1 change: 1 addition & 0 deletions fees/apollox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const request = (urls: ChainEndpoints) => {
const adapter: Adapter = {
adapter: {
[CHAIN.BSC]: {
runAtCurrTime: true,
fetch: request(endpoints)(CHAIN.BSC),
start: 1689609600,
},
Expand Down

0 comments on commit 4d96fcd

Please sign in to comment.