Skip to content

Commit

Permalink
cmooney-20220805: Fixes for CS 5.4 Inconsistencies (#84)
Browse files Browse the repository at this point in the history
* cmooney-20220805: Fixes for CS 5.4 Inconsistencies

* bound bar in AAVE plan to MAX_BORROW_RATE

* Revert "bound bar in AAVE plan to MAX_BORROW_RATE"

This reverts commit e2bf302.
  • Loading branch information
godsflaw authored Aug 5, 2022
1 parent c20cb03 commit d28774c
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit d28774c

Please sign in to comment.