-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
5 changed files
with
11 additions
and
101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
contracts/Factories/WhitePaperInterestRateModelFactory.sol
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |