mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
Removed changeImplementationAfter logics
This commit is contained in:
parent
1a639794d7
commit
4fcb539161
|
|
@ -9,7 +9,6 @@ contract InstaTokenDelegator is TokenDelegatorStorage, TokenEvents {
|
||||||
address implementation_,
|
address implementation_,
|
||||||
uint initialSupply_,
|
uint initialSupply_,
|
||||||
uint mintingAllowedAfter_,
|
uint mintingAllowedAfter_,
|
||||||
uint changeImplementationAfter_,
|
|
||||||
bool transferPaused_
|
bool transferPaused_
|
||||||
) {
|
) {
|
||||||
require(implementation_ != address(0), "TokenDelegator::constructor invalid address");
|
require(implementation_ != address(0), "TokenDelegator::constructor invalid address");
|
||||||
|
|
@ -26,8 +25,6 @@ contract InstaTokenDelegator is TokenDelegatorStorage, TokenEvents {
|
||||||
|
|
||||||
implementation = implementation_;
|
implementation = implementation_;
|
||||||
|
|
||||||
changeImplementationAfter = changeImplementationAfter_;
|
|
||||||
|
|
||||||
emit NewImplementation(address(0), implementation);
|
emit NewImplementation(address(0), implementation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,7 +34,6 @@ contract InstaTokenDelegator is TokenDelegatorStorage, TokenEvents {
|
||||||
*/
|
*/
|
||||||
function _setImplementation(address implementation_) external isMaster {
|
function _setImplementation(address implementation_) external isMaster {
|
||||||
require(implementation_ != address(0), "TokenDelegator::_setImplementation: invalid implementation address");
|
require(implementation_ != address(0), "TokenDelegator::_setImplementation: invalid implementation address");
|
||||||
require(block.timestamp >= changeImplementationAfter, "TokenDelegator::_setImplementation: can change implementation changeImplementationAfter time only");
|
|
||||||
|
|
||||||
address oldImplementation = implementation;
|
address oldImplementation = implementation;
|
||||||
implementation = implementation_;
|
implementation = implementation_;
|
||||||
|
|
|
||||||
|
|
@ -39,14 +39,12 @@ contract TokenEvents {
|
||||||
}
|
}
|
||||||
|
|
||||||
contract TokenDelegatorStorage {
|
contract TokenDelegatorStorage {
|
||||||
|
/// @notice InstaIndex contract
|
||||||
IndexInterface constant public instaIndex = IndexInterface(0x2971AdFa57b20E5a416aE5a708A8655A9c74f723);
|
IndexInterface constant public instaIndex = IndexInterface(0x2971AdFa57b20E5a416aE5a708A8655A9c74f723);
|
||||||
|
|
||||||
/// @notice Active brains of Token
|
/// @notice Active brains of Token
|
||||||
address public implementation;
|
address public implementation;
|
||||||
|
|
||||||
/// @notice The timestamp after which implementation maybe change
|
|
||||||
uint public changeImplementationAfter;
|
|
||||||
|
|
||||||
/// @notice EIP-20 token name for this token
|
/// @notice EIP-20 token name for this token
|
||||||
string public name = "<Token Name>"; // TODO - Replace it
|
string public name = "<Token Name>"; // TODO - Replace it
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user