Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Apr 29, 2024
1 parent 6e74b3c commit 10e1336
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dexs/glowswap/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { SimpleAdapter } from "../../adapters/types"
import { CHAIN } from "../../helpers/chains"
import { httpGet } from "../../utils/fetchURL"

const fetch = async () => {
const fetch = async (timestamp: number) => {
const url = "https://api.glowswap.io/v1/analytics"
const response = await httpGet(url)
const dailyVolume = response.data.volUSD.day;
return {
dailyVolume
dailyVolume,
timestamp
}
}
const adapter: SimpleAdapter = {
version: 2,
adapter: {
bsquared: {
fetch,
Expand Down

0 comments on commit 10e1336

Please sign in to comment.