Removed changeImplementationAfter logics

This commit is contained in:
Thrilok Kumar 2021-03-30 00:01:10 +05:30
parent 1a639794d7
commit 4fcb539161
2 changed files with 1 additions and 7 deletions

View File

@ -9,7 +9,6 @@ contract InstaTokenDelegator is TokenDelegatorStorage, TokenEvents {
address implementation_,
uint initialSupply_,
uint mintingAllowedAfter_,
uint changeImplementationAfter_,
bool transferPaused_
) {
require(implementation_ != address(0), "TokenDelegator::constructor invalid address");
@ -26,8 +25,6 @@ contract InstaTokenDelegator is TokenDelegatorStorage, TokenEvents {
implementation = implementation_;
changeImplementationAfter = changeImplementationAfter_;
emit NewImplementation(address(0), implementation);
}
@ -37,7 +34,6 @@ contract InstaTokenDelegator is TokenDelegatorStorage, TokenEvents {
*/
function _setImplementation(address implementation_) external isMaster {
require(implementation_ != address(0), "TokenDelegator::_setImplementation: invalid implementation address");
require(block.timestamp >= changeImplementationAfter, "TokenDelegator::_setImplementation: can change implementation changeImplementationAfter time only");
address oldImplementation = implementation;
implementation = implementation_;

View File

@ -39,14 +39,12 @@ contract TokenEvents {
}
contract TokenDelegatorStorage {
/// @notice InstaIndex contract
IndexInterface constant public instaIndex = IndexInterface(0x2971AdFa57b20E5a416aE5a708A8655A9c74f723);
/// @notice Active brains of Token
address public implementation;
/// @notice The timestamp after which implementation maybe change
uint public changeImplementationAfter;
/// @notice EIP-20 token name for this token
string public name = "<Token Name>"; // TODO - Replace it