Move interfaces that are not core protocol to misc/interfaces directory. Rename method to follow guidelines.

This commit is contained in:
David Racero 2020-11-02 17:01:47 +01:00
parent a4a02e761b
commit cabff851d0
5 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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))
);