Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 64870f0

Browse files
authored
fix: Bump version of v3 dependencies (#938)
* fix: Bump aave dependencies and fix tests
1 parent 6070e82 commit 64870f0

39 files changed

+2658
-1417
lines changed

contracts/mocks/flashloan/MockFlashLoanReceiver.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ contract MockFlashLoanReceiver is FlashLoanReceiverBase {
6666
: amounts[i] + premiums[i];
6767
//execution does not fail - mint tokens and return them to the _destination
6868

69-
token.mint(premiums[i]);
69+
token.mint(address(this), premiums[i]);
7070

7171
IERC20(assets[i]).approve(address(POOL), amountToReturn);
7272
}

contracts/mocks/flashloan/MockSimpleFlashLoanReceiver.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ contract MockFlashLoanSimpleReceiver is FlashLoanSimpleReceiverBase {
6363
uint256 amountToReturn = (_amountToApprove != 0) ? _amountToApprove : amount.add(premium);
6464
//execution does not fail - mint tokens and return them to the _destination
6565

66-
token.mint(premium);
66+
token.mint(address(this), premium);
6767

6868
IERC20(asset).approve(address(POOL), amountToReturn);
6969

contracts/mocks/tests/FlashloanAttacker.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ contract FlashloanAttacker is FlashLoanSimpleReceiverBase {
2424

2525
function supplyAsset(address asset, uint256 amount) public {
2626
MintableERC20 token = MintableERC20(asset);
27-
token.mint(amount);
27+
token.mint(address(this), amount);
2828
token.approve(address(_pool), type(uint256).max);
2929
_pool.supply(asset, amount, address(this), 0);
3030
}
@@ -49,7 +49,7 @@ contract FlashloanAttacker is FlashLoanSimpleReceiverBase {
4949
// Also do a normal borrow here in the middle
5050
_innerBorrow(asset);
5151

52-
token.mint(premium);
52+
token.mint(address(this), premium);
5353
IERC20(asset).approve(address(POOL), amountToReturn);
5454

5555
return true;

0 commit comments

Comments
 (0)