mirror of
				https://github.com/Instadapp/Gelato-automations.git
				synced 2024-07-29 22:28:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			481 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			481 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| // SPDX-License-Identifier: UNLICENSED
 | |
| pragma solidity 0.7.4;
 | |
| 
 | |
| import {MemoryInterface} from "../../interfaces/InstaDapp/IInstaDapp.sol";
 | |
| import {INSTA_MEMORY} from "../../constants/CInstaDapp.sol";
 | |
| 
 | |
| function _setUint(uint256 setId, uint256 val) {
 | |
|     if (setId != 0) MemoryInterface(INSTA_MEMORY).setUint(setId, val);
 | |
| }
 | |
| 
 | |
| function _getUint(uint256 getId, uint256 val) returns (uint256 returnVal) {
 | |
|     returnVal = getId == 0 ? val : MemoryInterface(INSTA_MEMORY).getUint(getId);
 | |
| }
 | 
