Untitled
DEPLOY .JSunknown
javascript
2 years ago
963 B
12
Indexable
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);
});
Editor is loading...
Leave a Comment