Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuse Repayment DAO Vote #889

Merged
merged 18 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from 14 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
2 changes: 1 addition & 1 deletion block.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14940045
14964000
File renamed without changes.
File renamed without changes.
File renamed without changes.
206 changes: 0 additions & 206 deletions proposals/dao/repay_fuse_bad_debt.ts

This file was deleted.

48 changes: 48 additions & 0 deletions proposals/dao/tip_112.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { FuseFixer__factory, PCVGuardian } from '@custom-types/contracts';
import {
DeployUpgradeFunc,
NamedAddresses,
SetupUpgradeFunc,
TeardownUpgradeFunc,
ValidateUpgradeFunc
} from '@custom-types/types';
import hre from 'hardhat';

const fipNumber = 'tip_112';

// Do any deployments
// This should exclusively include new contract deployments
const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses: NamedAddresses, logging: boolean) => {
const fuseFixerFactory = (await hre.ethers.getContractFactory('FuseFixer')) as FuseFixer__factory;
const fuseFixer = await fuseFixerFactory.deploy(addresses.core);
await fuseFixer.deployTransaction.wait();

return { fuseFixer };
};

// Do any setup necessary for running the test.
// This could include setting up Hardhat to impersonate accounts,
// ensuring contracts have a specific state, etc.
const setup: SetupUpgradeFunc = async (addresses, oldContracts, contracts, logging) => {
console.log(`No actions to complete in setup for fip ${fipNumber}`);
};

// Tears down any changes made in setup() that need to be
// cleaned up before doing any validation checks.
const teardown: TeardownUpgradeFunc = async (addresses, oldContracts, contracts, logging) => {
console.log(`No actions to complete in teardown for fip${fipNumber}`);
};

// Run any validations required on the fip using mocha or console logging
// IE check balances, check state of contracts, etc.
const validate: ValidateUpgradeFunc = async (addresses, oldContracts, contracts, logging) => {
// Ensure that the fuse fixer is a safe address
const pcvGuardian = contracts.pcvGuardianNew as PCVGuardian;
const isSafeAddress = await pcvGuardian.isSafeAddress(contracts.fuseFixer.address);

if (!isSafeAddress) {
throw new Error(`Fuse fixer (${contracts.fuseFixer.address}) is not a safe address`);
}
};

export { deploy, setup, teardown, validate };
97 changes: 0 additions & 97 deletions proposals/description/repay_fuse_bad_debt.ts

This file was deleted.

Loading