Skip to content

Commit

Permalink
chore: remove unused code from simulateBondingDebt
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcoindev committed May 6, 2024
1 parent 3d36150 commit a6cb74b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tasks/simulateBondingDebt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,41 +153,15 @@ task("simulateBondingDebt", "bonding debt contract deployment and claim")
UbiquityAlgorithmicDollarManagerAddress
)) as UbiquityAlgorithmicDollarManager;

bondingShareV2 = (await ethers.getContractAt(
"BondingShareV2",
BondingShareV2Address
)) as BondingShareV2;

masterChefV2 = await newMasterChefV2();

bondingV2 = (await ethers.getContractAt(
"BondingV2",
BondingV2Address
)) as BondingV2;

bondingDebt = await newBondingDebt();
};

const claimBondingDebt = async (_address: string) => {
console.log(`\n>> Processing claim for address ${_address}`);

const whaleAdress = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2";
await network.provider.request({
method: "hardhat_impersonateAccount",
params: [_address],
});
await network.provider.request({
method: "hardhat_impersonateAccount",
params: [whaleAdress],
});
const whale = ethers.provider.getSigner(whaleAdress);
const account = ethers.provider.getSigner(_address);
const ubqManager = ethers.provider.getSigner(manager.address);

await whale.sendTransaction({
to: _address,
value: BigNumber.from(10).pow(18).mul(10),
});

const treasuryAddress = await manager.treasuryAddress();
console.log("Treasury address", treasuryAddress);
Expand Down

0 comments on commit a6cb74b

Please sign in to comment.