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 { BigNumber, providers, Wallet } from "https://esm.sh/ethers"; | |
import { FlashbotsBundleProvider, FlashbotsBundleResolution } from "https://esm.sh/@flashbots/ethers-provider-bundle"; | |
const FLASHBOTS_AUTH_KEY = Deno.env.get('FLASHBOTS_AUTH_KEY'); | |
const WALLET_PRIVATE_KEY = Deno.env.get('WALLET_PRIVATE_KEY'); | |
const GWEI = BigNumber.from(10).pow(9); | |
const PRIORITY_FEE = GWEI.mul(3); | |
const LEGACY_GAS_PRICE = GWEI.mul(12); | |
const BLOCKS_IN_THE_FUTURE = 2; |