Skip to content

Commit

Permalink
Merge pull request DefiLlama#1449 from DefiLlama/glowswap
Browse files Browse the repository at this point in the history
add glowswap
  • Loading branch information
dtmkeng authored Apr 29, 2024
2 parents c51f333 + fd3912a commit f36d6d9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions dexs/glowswap/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { SimpleAdapter } from "../../adapters/types"
import { httpGet } from "../../utils/fetchURL"

const fetch = async () => {
const url = "https://api.glowswap.io/v1/analytics"
const response = await httpGet(url)
const dailyVolume = response.data.volUSD.day;
return {
dailyVolume,
}
}
const adapter: SimpleAdapter = {
version: 2,
adapter: {
bsquared: {
fetch,
start: 0,
runAtCurrTime: true,
}
}
}
export default adapter

0 comments on commit f36d6d9

Please sign in to comment.