Fix minor issues

This commit is contained in:
Mubaris NK 2021-04-04 09:22:13 +05:30
parent 839fa486fe
commit c46d2b4d86
No known key found for this signature in database
GPG Key ID: 9AC09AD0F8D68561
3 changed files with 6 additions and 4 deletions

View File

@ -13,7 +13,7 @@ abstract contract Helpers is DSMath, Stores {
/**
* @dev Aave referal code
*/
uint16 constant internal referalCode = 3228;
uint16 constant internal referralCode = 3228;
/**
* @dev Aave Provider (TODO - Replace the address)
@ -25,7 +25,7 @@ abstract contract Helpers is DSMath, Stores {
*/
AaveDataProviderInterface constant internal aaveData = AaveDataProviderInterface(0x057835Ad21a177dbdd3090bB1CAE03EaCF78Fc6d);
function getIsColl(address token, address user) internal view returns (bool isCol) {
(, , , , , , , , isCol) = aaveData.getUserReserveData(token, user);
function getIsColl(address token) internal view returns (bool isCol) {
(, , , , , , , , isCol) = aaveData.getUserReserveData(token, address(this));
}
}

View File

@ -14,7 +14,7 @@ abstract contract Helpers is DSMath, Stores {
/**
* @dev Aave referal code
*/
uint16 constant internal referalCode = 3228;
uint16 constant internal referralCode = 3228;
address constant internal polygonReceiver = address(2); // Replace this

View File

@ -34,6 +34,8 @@ contract LiquidityResolver is Helpers {
}
contract MigrateResolver is LiquidityResolver {
using SafeERC20 for IERC20;
struct AaveData {
bool isFinal;
address targetDsa;