mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
13 lines
346 B
JavaScript
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();
|