flashLoan gas test

This commit is contained in:
tim
2025-10-07 15:57:04 -04:00
parent 457385e692
commit 12957aaa51
3 changed files with 8 additions and 17 deletions

View File

@@ -34,10 +34,6 @@ contract FlashBorrower is IERC3156FlashBorrower {
payer = _payer;
}
function flash(address token, uint256 amount) external {
PartyPool(pool).flashLoan(IERC3156FlashBorrower(address(this)), token, amount, "");
}
function onFlashLoan(
address /*initiator*/,
address token,
@@ -416,7 +412,7 @@ contract GasTest is Test {
// Execute flash loan 10 times to measure gas
for (uint256 i = 0; i < 10; i++) {
borrower.flash(token, amount);
pool2.flashLoan(borrower, token, amount, "");
}
}
}