mirror of
				https://github.com/Instadapp/aave-protocol-v2.git
				synced 2024-07-29 21:47:30 +00:00 
			
		
		
		
	rebase: resolved conflicts after rebase: market config, internal/external validation for codesize and fixed bad conflict resolution
This commit is contained in:
		
							parent
							
								
									b63d29c1d6
								
							
						
					
					
						commit
						a4b6064f56
					
				|  | @ -42,7 +42,7 @@ library ValidationLogic { | |||
|    */ | ||||
|   function validateDeposit(DataTypes.ReserveData storage reserve, uint256 amount) internal view { | ||||
|     DataTypes.ReserveConfigurationMap memory reserveConfiguration = reserve.configuration; | ||||
|     (bool isActive, bool isFrozen, , bool isPaused) = reserveConfiguration.getFlagsMemory(); | ||||
|     (bool isActive, bool isFrozen, , , bool isPaused) = reserveConfiguration.getFlagsMemory(); | ||||
|     (, , , uint256 reserveDecimals, ) = reserveConfiguration.getParamsMemory(); | ||||
|     uint256 supplyCap = reserveConfiguration.getSupplyCapMemory(); | ||||
| 
 | ||||
|  | @ -124,7 +124,7 @@ library ValidationLogic { | |||
|     mapping(uint256 => address) storage reserves, | ||||
|     uint256 reservesCount, | ||||
|     address oracle | ||||
|   ) internal view { | ||||
|   ) external view { | ||||
|     ValidateBorrowLocalVars memory vars; | ||||
| 
 | ||||
|     DataTypes.ReserveConfigurationMap memory reserveConfiguration = reserve.configuration; | ||||
|  | @ -372,7 +372,7 @@ library ValidationLogic { | |||
|     address[] memory assets, | ||||
|     uint256[] memory amounts, | ||||
|     mapping(address => DataTypes.ReserveData) storage reservesData | ||||
|   ) internal view { | ||||
|   ) external view { | ||||
|     for (uint256 i = 0; i < assets.length; i++) { | ||||
|       require(!reservesData[assets[i]].configuration.getPaused(), Errors.VL_RESERVE_PAUSED); | ||||
|     } | ||||
|  |  | |||
|  | @ -92,8 +92,8 @@ export const strategyMATIC: IReserveParams = { | |||
|   borrowCap: '0', | ||||
|   supplyCap: '0', | ||||
|   reserveFactor: '2000', | ||||
|   borrowCap: MAX_BORROW_CAP, | ||||
|   supplyCap: MAX_SUPPLY_CAP, | ||||
|   borrowCap: '0', | ||||
|   supplyCap: '0', | ||||
| }; | ||||
| 
 | ||||
| export const strategyAAVE: IReserveParams = { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Hadrien Charlanes
						Hadrien Charlanes