Skip to content

Commit

Permalink
ensure the helper will repay all the borrowed tokens/debt/fees (#77)
Browse files Browse the repository at this point in the history
* ensure the helper will repay all the borrowed tokens/debt/fees

* chore: update snapshot
  • Loading branch information
androolloyd authored Nov 20, 2023
1 parent 4e0b967 commit 66e489b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ TestLoanCombinations:testLoan20For721SimpleInterestDutchFixedRepay() (gas: 58727
TestLoanCombinations:testLoan20for20SimpleInterestDutchFixedRepay() (gas: 594461)
TestLoanCombinations:testLoan721for20SimpleInterestDutchFixedRepay() (gas: 585469)
TestLoanCombinations:testLoanAstariaSettlementRepay() (gas: 575374)
TestNewLoan:testBuyNowPayLater() (gas: 2869909)
TestNewLoan:testInvalidSenderBNPL() (gas: 1613720)
TestNewLoan:testInvalidUserDataHashBNPL() (gas: 1616299)
TestNewLoan:testBuyNowPayLater() (gas: 2869309)
TestNewLoan:testInvalidSenderBNPL() (gas: 1613120)
TestNewLoan:testInvalidUserDataHashBNPL() (gas: 1615699)
TestNewLoan:testNewLoanAs1271ProxyAccountSender() (gas: 861457)
TestNewLoan:testNewLoanAs1271ProxyAccountThirdPartyFiller() (gas: 871145)
TestNewLoan:testNewLoanERC721CollateralDefaultTerms2() (gas: 424965)
Expand Down
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 66e489b

Please sign in to comment.