mirror of
				https://github.com/Instadapp/dsa-connectors.git
				synced 2024-07-29 22:37:00 +00:00 
			
		
		
		
	Update contracts/mainnet/connectors/euler/main.sol
Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									3df9257ea0
								
							
						
					
					
						commit
						d028fcb41c
					
				| 
						 | 
				
			
			@ -178,7 +178,10 @@ abstract contract Euler is Helpers {
 | 
			
		|||
			markets.underlyingToDToken(_token)
 | 
			
		||||
		);
 | 
			
		||||
 | 
			
		||||
		if (isEth) convertEthToWeth(isEth, TokenInterface(_token), _amt);
 | 
			
		||||
		if (isEth) {
 | 
			
		||||
			_amt = _amt == uint256(-1) ? borrowedDToken.balanceOf(address(this)) : _amt;
 | 
			
		||||
			convertEthToWeth(isEth, TokenInterface(_token), _amt);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		_amt = _amt == type(uint256).max
 | 
			
		||||
			? borrowedDToken.balanceOf(address(this))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user