mirror of
				https://github.com/Instadapp/aave-protocol-v2.git
				synced 2024-07-29 21:47:30 +00:00 
			
		
		
		
	fix: Addded decimals in borrowCap require
This commit is contained in:
		
							parent
							
								
									7e02877966
								
							
						
					
					
						commit
						05ca0c4ed1
					
				|  | @ -166,6 +166,7 @@ library ValidationLogic { | |||
|       vars.totalSupplyStableDebt | ||||
|         .add(vars.totalSupplyVariableDebt) | ||||
|         .add(amount) | ||||
|         .div(10 ** reserve.configuration.getDecimals()) | ||||
|         < reserve.configuration.getBorrowCap(), | ||||
|       Errors.VL_BORROW_CAP_EXCEEDED); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Hadrien Charlanes
						Hadrien Charlanes