Skip to content

Commit

Permalink
Revert "Add first part of gd rewards script"
Browse files Browse the repository at this point in the history
This reverts commit e661c64.
  • Loading branch information
Shloyem committed Mar 10, 2022
1 parent e661c64 commit fd80972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 46 deletions.
19 changes: 4 additions & 15 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { sha3 } from "web3-utils";
import { config } from "dotenv";
import { airdrop } from "./scripts/governance/airdropCalculation";
import { airdrop as gdxAirdrop, airdropRecover as gdxAirdropRecover} from "./scripts/gdx/gdxAirdropCalculation";
import { stakersGdRewards} from "./scripts/staking/stakersGdRewardsCalculation";
import { verify } from "./scripts/verify";
import { ethers } from "ethers";
config();
Expand Down Expand Up @@ -199,7 +198,9 @@ task("gdxAirdrop", "Calculates airdrop data")
});

task("gdxAirdropRecover", "Calculates new airdrop data for recovery")
.addParam("action", "addition/tree")
.addParam("action", "calculate/tree/proof")
.addOptionalPositionalParam("address", "proof for address")
.addOptionalParam("ethsnapshotblock", "eth block for calculate")
.setAction(async (taskArgs, hre) => {
const actions = gdxAirdropRecover(hre.ethers);
switch (taskArgs.action) {
Expand All @@ -208,7 +209,7 @@ task("gdxAirdropRecover", "Calculates new airdrop data for recovery")
case "tree":
return actions.buildMerkleTree();
default:
console.log("unknown action use addition or tree");
console.log("unknown action use calculate or tree");
}
});

Expand All @@ -218,15 +219,3 @@ task("verifyjson", "verify contracts on etherscan").setAction(
}
);
export default hhconfig;

task("stakersGdRewards", "Calculates airdrop data")
.addParam("action", "TBD")
.setAction(async (taskArgs, hre) => {
const actions = stakersGdRewards(hre.ethers);
switch (taskArgs.action) {
case "calculate":
return actions.doStuff();
default:
console.log("unknown action use calculate or tree");
}
});
31 changes: 0 additions & 31 deletions scripts/staking/stakersGdRewardsCalculation.ts

This file was deleted.

0 comments on commit fd80972

Please sign in to comment.