Files
DefiLlama-Adapters/dexVolumes/cli/testAdapter.js
2022-07-20 20:45:12 +02:00

13 lines
346 B
JavaScript

const { getCurrentBlocks } = require("@defillama/sdk/build/computeTVL/blocks");
const { volume } = require("../pancakeswap");
const test = async () => {
const { timestamp, chainBlocks } = await getCurrentBlocks();
console.log(chainBlocks, "chainBlocks");
volume.bsc.fetch(timestamp).then((res) => {
console.log(res);
});
};
test();