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

Remove AAVE deal #1677

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
22 changes: 0 additions & 22 deletions test/prod/ProdTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,4 @@ contract ProdTest is Test, BaseConfig {
function testShowBlockNumber() public view {
console.log("Testing at block", block.number);
}

// Needed because AAVE packs the balance struct.
function deal(
address underlying,
address user,
uint256 amount
) internal override {
if (underlying == aave) {
uint256 balance = ERC20(underlying).balanceOf(user);

if (amount > balance) {
ERC20(underlying).transfer(user, amount - balance);
} else {
vm.prank(user);
ERC20(underlying).transfer(address(this), balance - amount);
}

return;
}

super.deal(underlying, user, amount);
}
}
2 changes: 0 additions & 2 deletions test/prod/aave-v2/setup/TestSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ contract TestSetup is Config, ProdTest {

vm.label(address(user), "User");

// Only 104 bits are used for the balance in the AAVE balance slot
deal(aave, address(this), type(uint104).max);
// Only 255 bits are used for the balance in the USDC balance slot
deal(usdc, address(this), 2**255 - 1);
deal(dai, address(this), type(uint256).max);
Expand Down
Loading