cleanup: Cleanup constructor

This commit is contained in:
Lasse Herskind 2021-09-14 13:35:51 +02:00
parent 73e4bb2b1c
commit 8a253fc0ac

View File

@ -76,12 +76,11 @@ contract StaticATokenLM is ERC20 {
LENDING_POOL = lendingPool;
ATOKEN = IERC20(aToken);
IERC20 underlyingAsset = IERC20(IAToken(aToken).UNDERLYING_ASSET_ADDRESS());
ASSET = underlyingAsset;
IERC20 underlyingAsset = ASSET = IERC20(IAToken(aToken).UNDERLYING_ASSET_ADDRESS());
underlyingAsset.safeApprove(address(lendingPool), type(uint256).max);
IAaveIncentivesController incentivesController = IAToken(aToken).getIncentivesController();
INCENTIVES_CONTROLLER = incentivesController;
IAaveIncentivesController incentivesController =
INCENTIVES_CONTROLLER = IAToken(aToken).getIncentivesController();
REWARD_TOKEN = IERC20(incentivesController.REWARD_TOKEN());
}