Skip to content

Instantly share code, notes, and snippets.

View CepIbp1950's full-sized avatar

Clifford Pope CepIbp1950

  • IJJ Corporation
  • USA
  • X @IJJCorp
View GitHub Profile
@CepIbp1950
CepIbp1950 / hardhat.config.js
Created January 28, 2025 11:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
require("dotenv").config()
require("@nomicfoundation/hardhat-toolbox")
const privateKey = process.env.PRIVATE_KEY || ""
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.18",
networks: {
hardhat: {
@CepIbp1950
CepIbp1950 / hardhat.config.js
Created January 28, 2025 11:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
require("dotenv").config()
require("@nomicfoundation/hardhat-toolbox")
const privateKey = process.env.PRIVATE_KEY || ""
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.18",
networks: {
hardhat: {
@CepIbp1950
CepIbp1950 / hardhat.config.js
Created January 28, 2025 11:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
require("dotenv").config()
require("@nomicfoundation/hardhat-toolbox")
const privateKey = process.env.PRIVATE_KEY || ""
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.18",
networks: {
hardhat: {
@CepIbp1950
CepIbp1950 / hardhat.config.js
Created January 28, 2025 11:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
require("dotenv").config()
require("@nomicfoundation/hardhat-toolbox")
const privateKey = process.env.PRIVATE_KEY || ""
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.18",
networks: {
hardhat: {
@CepIbp1950
CepIbp1950 / contracts...Arbitrage.sol
Created January 28, 2025 08:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.18;
import "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol";
import "@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol";
import {ISwapRouter} from "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";
contract Arbitrage is IFlashLoanRecipient {
IVault private constant vault =
IVault(0xBA12222222228d8Ba445958a75a0704d566BF2C8);
// SPDX-License-Identifier: GPL-3.0-or-later
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.