Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
networks: {
hardhat: {
forking: {
url: `https://ftmrpc.ultimatenodes.io/`,
url: `https://rpc.api.moonbeam.network`,
},
accounts: {
mnemonic: process.env.MNEMONIC,
Expand Down Expand Up @@ -95,6 +95,7 @@ module.exports = {
mainnet: `${process.env.ETHERSCAN_APIKEY}`,
aurora: `${process.env.AURORASCAN_APIKEY}`,
xdai: `${process.env.GNOSIS_APIKEY}`,
moonbeam: `${process.env.MOONBEAM_APIKEY}`
},
},
paths: {
Expand Down
167 changes: 76 additions & 91 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"hardhat-deploy": "^0.7.2",
"hardhat-gas-reporter": "^1.0.4",
"hardhat-preprocessor": "^0.1.4",
"mocha": "^9.0.2",
"mocha": "^9.2.2",
"prettier-plugin-solidity": "^1.0.0-beta.9",
"solidity-coverage": "^0.7.16"
},
Expand Down
13 changes: 7 additions & 6 deletions scripts/degenApe.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const { sleep, fastVerifyContracts, slowVerifyContracts } = require("./degenUtil
// Script configs
const sleepConfig = { sleepToggle: true, sleepTime: 10000 };
const callAttempts = 3;
const generatePfcore = false;
const generatePfcore = true;

// Pf-core generation configs
const outputFolder = "scripts/degenApe/degenApeOutputs";
const outputFolder = "scripts/degenApeOutputs";

// These arguments need to be set manually before the script can make pf-core
// @param - chain: The chain on which the script is running
Expand Down Expand Up @@ -48,15 +48,16 @@ const pfcoreArgs = {
// Addresses & Contracts
const governance = "0x4204FDD868FFe0e62F57e6A626F8C9530F7d5AD1";
const strategist = "0x4204FDD868FFe0e62F57e6A626F8C9530F7d5AD1";
const controller = "0xc335740c951F45200b38C5Ca84F0A9663b51AEC6";
const controller = "0x95ca4584eA2007D578fa2693CCC76D930a96d165";
const timelock = "0x4204FDD868FFe0e62F57e6A626F8C9530F7d5AD1";
const harvester = ["0x0f571D2625b503BB7C1d2b5655b483a2Fa696fEf"];

const contracts = [
"src/strategies/optimism/zipswap/strategy-zip-$gohm-$weth-lp.sol:StrategyZipEthGohmLp"
"src/strategies/moonbeam/stella/strategy-stella-USDCmad-GLMR-lp.sol:StrategyStellaUSDCmadGLMRLp"
];

const testedStrategies = [];
const testedStrategies = [
];

const executeTx = async (calls, fn, ...args) => {
let transaction;
Expand Down Expand Up @@ -238,7 +239,7 @@ ratio: ${ratio.toString()}
const main = async () => {
await deployContractsAndGeneratePfcore();
// await fastVerifyContracts(testedStrategies);
await slowVerifyContracts(testedStrategies);
await slowVerifyContracts(testedStrategies, governance, strategist, controller, timelock);
};

main()
Expand Down
2 changes: 1 addition & 1 deletion scripts/degenUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const fastVerifyContracts = async (strategies) => {
}

// Use this for verificationof 5 contracts or more
const slowVerifyContracts = async (strategies) => {
const slowVerifyContracts = async (strategies, governance, strategist, controller, timelock) => {
for (strategy of strategies) {
try {
await hre.run("verify:verify", {
Expand Down
Loading