-
Notifications
You must be signed in to change notification settings - Fork 11
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
refactor(migration): remove unnecessary network-specific instanciation #328
Conversation
Tests are failing... |
2eebb28
to
90ef4bd
Compare
Tests are failing |
and i don't know why... |
…into refactor/migration-constructor
import {MigrationBundler, ERC20} from "./MigrationBundler.sol"; | ||
|
||
/// @title AaveV2MigrationBundler | ||
/// @author Morpho Labs | ||
/// @custom:contact security@morpho.org | ||
/// @notice Contract allowing to migrate a position from Aave V2 to Morpho Blue easily. | ||
/// If deploying to Ethereum, deploy `AaveV2EthereumMigrationBundler` instead. | ||
contract AaveV2MigrationBundler is MigrationBundler { | ||
contract AaveV2MigrationBundler is MigrationBundler, StEthBundler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the goal of this PR is to harmonize things: either have all migration bundlers instances defined in ethereum
, or have no migration bundler defined in ethereum
The previous state where only the AaveV2 migration bundler was defined with its parameters as constants is inconsistent with other migration bundlers
…into refactor/migration-constructor
rerunning jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename this file?
AaveV2MigrationBundler
&CompoundV2MigrationBundler
are not abstract #304So I first went to make migration bundlers abstract and re-instanciate them in
ethereum
folder but it's simpler to check the address in the constructor or simply don't check anything so I removedAaveV2EthereumMigrationBundler