mirror of
				https://github.com/Instadapp/dsa-connectors.git
				synced 2024-07-29 22:37:00 +00:00 
			
		
		
		
	✏️ Rename variable isEth to iswEth
This commit is contained in:
		
							parent
							
								
									605bcc9dcf
								
							
						
					
					
						commit
						d738ec4627
					
				|  | @ -30,12 +30,12 @@ abstract contract YearnResolver is Events, Basic { | |||
|         YearnV2Interface yearn = YearnV2Interface(vault); | ||||
| 
 | ||||
|         address want = yearn.token(); | ||||
|         bool isEth = want == wethAddr; | ||||
|         bool iswETH = want == wethAddr; | ||||
|         TokenInterface tokenContract = TokenInterface(want); | ||||
| 
 | ||||
|         if (isEth) { | ||||
|         if (iswETH) { | ||||
|             _amt = _amt == uint(-1) ? address(this).balance : _amt; | ||||
|             convertEthToWeth(isEth, tokenContract, _amt); | ||||
|             convertEthToWeth(iswETH, tokenContract, _amt); | ||||
|         } else { | ||||
|             _amt = _amt == uint(-1) ? tokenContract.balanceOf(address(this)) : _amt; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Thomas Bouder
						Thomas Bouder