Skip to content

Instantly share code, notes, and snippets.

@kx9x
kx9x / !metakeeper_autotask.js
Last active November 5, 2020 20:03
metakeeper_autotask.js
// Settings edited by user
const INFURA_PROJECT_ID = ""
const INFURA_PROJECT_SECRET = ""
// Code starts here
const { ethers } = require("ethers");
const { DefenderRelaySigner } = require('defender-relay-client/lib/ethers');
const UniswapOracleV2 = "UniswapOracleV2";
const HegicPoolKeep3r = "HegicPoolKeep3r";
@kx9x
kx9x / !keeper_auto_task.js
Last active July 24, 2021 01:29
This gist shows an autotask that can be used with OpenZeppelin Defender on the free tier without relayer
// Settings edited by user
const YOUR_KEEP3R_ADDRESSS = "";
const YOUR_KEEP3R_PRIVATE_KEY = "";
// Code starts here
const { ethers } = require("ethers");
const privateKey = Buffer.from(YOUR_KEEP3R_PRIVATE_KEY, 'hex');
const UniswapSlidingWindow = "UniswapSlidingWindow";
const HegicPoolKeep3r = "HegicPoolKeep3r";