spookyswap typescript

This commit is contained in:
shinitakunai
2022-03-01 21:47:52 -08:00
parent cdc6894f7a
commit 533ee321fc
3 changed files with 12 additions and 1 deletions

View File

@@ -19,5 +19,10 @@ import uniswap from "./uniswap";
import yieldfields from "./yieldfields";
export default {
spookyswap,
sushiswap,
terraswap,
traderjoe,
uniswap,
yieldfields,
};

View File

@@ -1,3 +1,5 @@
import { DexVolumeAdapter } from "../dexVolume.type";
const { getChainVolume } = require("../helper/getUniSubgraphVolume");
const { FANTOM } = require("../helper/chains");
const endpoints = {
@@ -10,7 +12,7 @@ const graphs = getChainVolume({
},
});
module.exports = {
const adapter: DexVolumeAdapter = {
volume: {
[FANTOM]: {
fetch: graphs(FANTOM),
@@ -18,3 +20,5 @@ module.exports = {
},
},
};
export default adapter;

View File

@@ -71,3 +71,5 @@ const adapter: DexVolumeAdapter = {
// TODO custom backfill
},
};
export default adapter;