mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
Fix minor issues
This commit is contained in:
parent
839fa486fe
commit
c46d2b4d86
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@ contract LiquidityResolver is Helpers {
|
|||
}
|
||||
|
||||
contract MigrateResolver is LiquidityResolver {
|
||||
using SafeERC20 for IERC20;
|
||||
|
||||
struct AaveData {
|
||||
bool isFinal;
|
||||
address targetDsa;
|
||||
|
|
Loading…
Reference in New Issue
Block a user