Untitled

DEPLOY .JS
mail@pastecode.io avatar
unknown
javascript
23 days ago
963 B
8
Indexable
Never
const hre = require("hardhat");

async function main() {
  const [deployer] = await hre.ethers.getSigners();

  console.log("Deploying contracts with the account:", deployer.address);

  const lendingPoolAddress = "0xYourLendingPoolAddress";
  const uniswapRouterAddress = "0xYourUniswapRouterAddress";
  const tokenA = "0xYourTokenAAddress";
  const tokenB = "0xYourTokenBAddress";
  const priceOracle = "0xYourPriceOracleAddress";

  const MEVFlashbotArbitrage = await hre.ethers.getContractFactory("MEVFlashbotArbitrage");
  const mevFlashbotArbitrage = await MEVFlashbotArbitrage.deploy(
    lendingPoolAddress,
    uniswapRouterAddress,
    tokenA,
    tokenB,
    priceOracle
  );

  await mevFlashbotArbitrage.deployed();

  console.log("MEVFlashbotArbitrage deployed to:", mevFlashbotArbitrage.address);
}

main()
  .then(() => process.exit(0))
  .catch((error) => {
    console.error(error);
    process.exit(1);
  });

Leave a Comment