This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ethers } from "ethers"; | |
import { parseUnits } from "ethers/lib/utils"; | |
import fs from "fs"; | |
import fetch from "node-fetch"; | |
import path from "path"; | |
const START_BLOCK = 11905930; | |
const END_BLOCK = 12111455; | |
const SNAPSHOT_BLOCK_DELTA = 240; // 240 blocks; Rougly 1 hr between snapshots |