Skip to content

Commit

Permalink
refactor!: remove unused contracts
Browse files Browse the repository at this point in the history
Problem: After changing the logic of how rate models and vTokens
are deployed, factory contracts are no longer needed. Beacon contract
is unnecessary as well since we can use the one from OZ directly.

Solution: Remove unused contracts, add lib/imports.sol that imports
UpgradeableBeacon and BeaconProxy from OZ so that hardhat compiles
and generates typings for these contracts.
  • Loading branch information
kkirka committed Jun 8, 2023
1 parent 15b2099 commit 14e5dce
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 101 deletions.
26 changes: 0 additions & 26 deletions contracts/Factories/JumpRateModelFactory.sol

This file was deleted.

53 changes: 0 additions & 53 deletions contracts/Factories/VTokenProxyFactory.sol

This file was deleted.

12 changes: 0 additions & 12 deletions contracts/Factories/WhitePaperInterestRateModelFactory.sol

This file was deleted.

10 changes: 0 additions & 10 deletions contracts/Proxy/UpgradeableBeacon.sol

This file was deleted.

11 changes: 11 additions & 0 deletions contracts/lib/imports.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.13;

// This file is needed to make hardhat and typechain generate artifacts for
// contracts we depend on (e.g. in tests or deployments) but not use directly.
// Another way to do this would be to use hardhat-dependency-compiler, but
// since we only have a couple of dependencies, installing a separate package
// seems an overhead.

import { UpgradeableBeacon } from "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol";
import { BeaconProxy } from "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol";

0 comments on commit 14e5dce

Please sign in to comment.