added instalist verification

This commit is contained in:
Samyak Jain 2021-04-16 17:45:21 +05:30
parent f5a8e97455
commit 4aea9dd273
3 changed files with 10 additions and 2 deletions

View File

@ -95,4 +95,8 @@ interface AaveInterface {
uint256 ltv,
uint256 healthFactor
);
}
interface InstaListInterface {
function accountID(address) external view returns (uint);
}

View File

@ -99,7 +99,8 @@ contract AaveV2Migrator is MigrateResolver {
address[] memory supplyTokens = data.supplyTokens;
address[] memory borrowTokens = data.borrowTokens;
// TODO: before migrating make sure the new DSA is v2 DSA on L1.
// TODO: IMPORTANT!! before migrating make sure the new DSA is v2 DSA on L1.
require(instaList.accountID(dsa) != 0, "not-a-dsa");
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());

View File

@ -4,7 +4,8 @@ import {
TokenMappingInterface,
AaveLendingPoolProviderInterface,
AaveDataProviderInterface,
IndexInterface
IndexInterface,
InstaListInterface
} from "./interfaces.sol";
contract Variables {
@ -37,4 +38,6 @@ contract Variables {
// Address which will receive L1 data and post it on L2
address public maticReceiver = 0x0000000000000000000000000000000000001001;
InstaListInterface public instaList = InstaListInterface(0x839c2D3aDe63DF5b0b8F3E57D5e145057Ab41556);
}