Skip to content

Commit

Permalink
feat: add initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Aug 8, 2024
1 parent 1214bcc commit c2568b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/periphery/contracts/static-a-token/StaticATokenLM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ contract StaticATokenLM is
emit Initialized(newAToken, staticATokenName, staticATokenSymbol);
}

function upgradeInitialize() external initializer {
require(__deprecated != 0, 'MUST_ALREADY_BE_INITIALIZED');
}

/// @inheritdoc IRescuable
function whoCanRescue() public view override returns (address) {
return POOL_ADDRESSES_PROVIDER.getACLAdmin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ interface IInitializableStaticATokenLM {
string calldata staticATokenName,
string calldata staticATokenSymbol
) external;

/**
* @dev Initializes the already initialized StaticATokenLM
* @notice This is required Initializable was migrated to EIP-7102 so the storage location moved.
*/
function upgradeInitialize() external;
}

0 comments on commit c2568b1

Please sign in to comment.