Skip to content

Commit

Permalink
fix: Fix simple flash loan test to use new function name
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Oct 12, 2021
1 parent 740aeaf commit 9036580
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions test-suites/pool-simple-flashloan.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {

const wethReservesBefore = await aWETH.balanceOf(await aWETH.RESERVE_TREASURY_ADDRESS());

await pool.simpleFlashLoan(
await pool.flashLoanSimple(
_mockSimpleFlashLoanReceiver.address,
weth.address,
wethFlashBorrowedAmount,
Expand Down Expand Up @@ -129,7 +129,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {

const reservesBefore = await aWETH.balanceOf(await aWETH.RESERVE_TREASURY_ADDRESS());

const txResult = await pool.simpleFlashLoan(
const txResult = await pool.flashLoanSimple(
_mockSimpleFlashLoanReceiver.address,
weth.address,
flashBorrowedAmount,
Expand Down Expand Up @@ -163,7 +163,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {
await expect(
pool
.connect(caller.signer)
.simpleFlashLoan(
.flashLoanSimple(
_mockSimpleFlashLoanReceiver.address,
weth.address,
ethers.utils.parseEther('0.8'),
Expand All @@ -182,7 +182,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {
await expect(
pool
.connect(caller.signer)
.simpleFlashLoan(
.flashLoanSimple(
_mockSimpleFlashLoanReceiver.address,
weth.address,
ethers.utils.parseEther('0.8'),
Expand All @@ -197,7 +197,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {
const caller = users[1];

await expect(
pool.connect(caller.signer).simpleFlashLoan(
pool.connect(caller.signer).flashLoanSimple(
_mockSimpleFlashLoanReceiver.address,
weth.address,
'1004415000000000000', //slightly higher than the available liquidity
Expand All @@ -213,7 +213,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {
const caller = users[1];

await expect(
pool.simpleFlashLoan(deployer.address, weth.address, '1000000000000000000', '0x10', '0')
pool.flashLoanSimple(deployer.address, weth.address, '1000000000000000000', '0x10', '0')
).to.be.reverted;
});

Expand Down Expand Up @@ -251,7 +251,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {

const reservesBefore = await aUsdc.balanceOf(await aUsdc.RESERVE_TREASURY_ADDRESS());

await pool.simpleFlashLoan(
await pool.flashLoanSimple(
_mockSimpleFlashLoanReceiver.address,
usdc.address,
flashBorrowedAmount,
Expand Down Expand Up @@ -287,7 +287,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {
await expect(
pool
.connect(caller.signer)
.simpleFlashLoan(
.flashLoanSimple(
_mockSimpleFlashLoanReceiver.address,
usdc.address,
flashloanAmount,
Expand Down Expand Up @@ -317,7 +317,7 @@ makeSuite('Pool: Simple FlashLoan', (testEnv: TestEnv) => {
await expect(
pool
.connect(caller.signer)
.simpleFlashLoan(
.flashLoanSimple(
_mockSimpleFlashLoanReceiver.address,
weth.address,
flashAmount,
Expand Down
2 changes: 1 addition & 1 deletion test-suites/validation-logic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ makeSuite('ValidationLogic: Edge cases', (testEnv: TestEnv) => {
expect(await configurator.connect(poolAdmin.signer).setReservePause(weth.address, true));

await expect(
pool.connect(user.signer).simpleFlashLoan(user.address, weth.address, 0, '0x10', 0)
pool.connect(user.signer).flashLoanSimple(user.address, weth.address, 0, '0x10', 0)
).to.be.revertedWith(VL_RESERVE_PAUSED);
});

Expand Down

0 comments on commit 9036580

Please sign in to comment.