Skip to content

Commit

Permalink
ensure the helper will repay all the borrowed tokens/debt/fees
Browse files Browse the repository at this point in the history
  • Loading branch information
androolloyd committed Nov 20, 2023
1 parent 4e0b967 commit 06f81d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BNPLHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ contract BNPLHelper is IFlashLoanRecipient {
transfers[i] = AdditionalTransfer({
itemType: ItemType.ERC20,
identifier: 0,
token: tokens[0],
token: tokens[i],
from: execution.borrower,
to: vault,
amount: amounts[0] + feeAmounts[0]
amount: amounts[i] + feeAmounts[i]
});
unchecked {
++i;
Expand Down

0 comments on commit 06f81d2

Please sign in to comment.