mirror of
				https://github.com/Instadapp/aave-protocol-v2.git
				synced 2024-07-29 21:47:30 +00:00 
			
		
		
		
	Move interfaces that are not core protocol to misc/interfaces directory. Rename method to follow guidelines.
This commit is contained in:
		
							parent
							
								
									a4a02e761b
								
							
						
					
					
						commit
						cabff851d0
					
				| 
						 | 
				
			
			@ -27,7 +27,7 @@ library Helpers {
 | 
			
		|||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  function getUserCurrentDebtViaMemory(address user, ReserveLogic.ReserveData memory reserve)
 | 
			
		||||
  function getUserCurrentDebtMemory(address user, ReserveLogic.ReserveData memory reserve)
 | 
			
		||||
    internal
 | 
			
		||||
    view
 | 
			
		||||
    returns (uint256, uint256)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,8 +2,8 @@
 | 
			
		|||
pragma solidity ^0.6.8;
 | 
			
		||||
pragma experimental ABIEncoderV2;
 | 
			
		||||
 | 
			
		||||
import {IWETH} from '../interfaces/IWETH.sol';
 | 
			
		||||
import {IWETHGateway} from '../interfaces/IWETHGateway.sol';
 | 
			
		||||
import {IWETH} from './interfaces/IWETH.sol';
 | 
			
		||||
import {IWETHGateway} from './interfaces/IWETHGateway.sol';
 | 
			
		||||
import {ILendingPool} from '../interfaces/ILendingPool.sol';
 | 
			
		||||
import {ILendingPoolAddressesProvider} from '../interfaces/ILendingPoolAddressesProvider.sol';
 | 
			
		||||
import {IAToken} from '../tokenization/interfaces/IAToken.sol';
 | 
			
		||||
| 
						 | 
				
			
			@ -87,7 +87,7 @@ contract WETHGateway is IWETHGateway {
 | 
			
		|||
  ) external override payable {
 | 
			
		||||
    ILendingPool pool = ILendingPool(ADDRESSES_PROVIDER.getLendingPool());
 | 
			
		||||
    require(address(pool) != address(0));
 | 
			
		||||
    (uint256 stableDebt, uint256 variableDebt) = Helpers.getUserCurrentDebtViaMemory(
 | 
			
		||||
    (uint256 stableDebt, uint256 variableDebt) = Helpers.getUserCurrentDebtMemory(
 | 
			
		||||
      onBehalfOf,
 | 
			
		||||
      pool.getReserveData(address(WETH))
 | 
			
		||||
    );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user