Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmooney-20220805: Fixes for CS 5.4 Inconsistencies #84

Merged
merged 3 commits into from
Aug 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/pools/D3MAavePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ contract D3MAavePool is ID3MPool {
event Collect(address indexed king, address indexed gift, uint256 amt);

constructor(address hub_, address dai_, address pool_) {
pool = LendingPoolLike(pool_);
dai = TokenLike(dai_);
pool = LendingPoolLike(pool_);

// Fetch the reserve data from Aave
(,,,,,,, address adai_, address stableDebt_, address variableDebt_, ,) = pool.getReserveData(dai_);
require(stableDebt_ != address(0), "D3MAavePool/invalid-stableDebt");
(,,,,,,, address adai_, address stableDebt_, address variableDebt_,,) = pool.getReserveData(dai_);
require(adai_ != address(0), "D3MAavePool/invalid-adai");
require(stableDebt_ != address(0), "D3MAavePool/invalid-stableDebt");
require(variableDebt_ != address(0), "D3MAavePool/invalid-variableDebt");

adai = ATokenLike(adai_);
Expand Down