mirror of
				https://github.com/Instadapp/yield-contract.git
				synced 2024-07-29 21:47:29 +00:00 
			
		
		
		
	Changed from 90 days to 30 days shield time
This commit is contained in:
		
							parent
							
								
									da816bb20f
								
							
						
					
					
						commit
						87b2500483
					
				|  | @ -23,7 +23,7 @@ contract Flusher { | ||||||
|   RegistryInterface public constant registry = RegistryInterface(address(0)); // TODO - Change while deploying. |   RegistryInterface public constant registry = RegistryInterface(address(0)); // TODO - Change while deploying. | ||||||
|   bool public shield; |   bool public shield; | ||||||
|   uint256 public shieldBlockTime; |   uint256 public shieldBlockTime; | ||||||
|   uint256 internal waitBlockTime = 518400; // 90 days blocktime. |   uint256 internal waitBlockTime = 172800; // 30 days blocktime. | ||||||
| 
 | 
 | ||||||
|   modifier isSigner { |   modifier isSigner { | ||||||
|     require(registry.signer(msg.sender), "not-signer"); |     require(registry.signer(msg.sender), "not-signer"); | ||||||
|  | @ -136,7 +136,7 @@ contract Flusher { | ||||||
|    */ |    */ | ||||||
|   function spell(address _target, bytes calldata _data) external isChief { |   function spell(address _target, bytes calldata _data) external isChief { | ||||||
|     require(!shield, "shield-access-denied"); |     require(!shield, "shield-access-denied"); | ||||||
|     require(shieldBlockTime != 0 && shieldBlockTime <= block.number, "more-than-ninty-days"); |     require(shieldBlockTime != 0 && shieldBlockTime <= block.number, "more-than-30-days"); | ||||||
|     require(_target != address(0), "target-invalid"); |     require(_target != address(0), "target-invalid"); | ||||||
|     require(_data.length > 0, "data-invalid"); |     require(_data.length > 0, "data-invalid"); | ||||||
|     bytes memory _callData = _data; |     bytes memory _callData = _data; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Thrilok kumar
						Thrilok kumar